Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys Remove unused variable



details:   https://anonhg.NetBSD.org/src/rev/7894c74da274
branches:  trunk
changeset: 790048:7894c74da274
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Sep 15 14:40:56 2013 +0000

description:
Remove unused variable

diffstat:

 sys/dev/sysmon/sysmon_envsys_events.c |  9 ++-------
 sys/netinet/tcp_input.c               |  8 +++-----
 2 files changed, 5 insertions(+), 12 deletions(-)

diffs (78 lines):

diff -r c878c666f19c -r 7894c74da274 sys/dev/sysmon/sysmon_envsys_events.c
--- a/sys/dev/sysmon/sysmon_envsys_events.c     Sun Sep 15 14:13:19 2013 +0000
+++ b/sys/dev/sysmon/sysmon_envsys_events.c     Sun Sep 15 14:40:56 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysmon_envsys_events.c,v 1.109 2013/01/23 18:04:33 mbalmer Exp $ */
+/* $NetBSD: sysmon_envsys_events.c,v 1.110 2013/09/15 14:40:56 martin Exp $ */
 
 /*-
  * Copyright (c) 2007, 2008 Juan Romero Pardines.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys_events.c,v 1.109 2013/01/23 18:04:33 mbalmer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys_events.c,v 1.110 2013/09/15 14:40:56 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -705,7 +705,6 @@
 {
        struct sysmon_envsys *sme = arg;
        sme_event_t *see;
-       uint64_t timo;
 
        KASSERT(sme != NULL);
 
@@ -714,10 +713,6 @@
                workqueue_enqueue(sme->sme_wq, &see->see_wk, NULL);
                see->see_edata->flags |= ENVSYS_FNEED_REFRESH;
        }
-       if (sme->sme_events_timeout)
-               timo = sme->sme_events_timeout * hz;
-       else
-               timo = SME_EVTIMO;
        if (!sysmon_low_power)
                sme_schedule_callout(sme);
        mutex_exit(&sme->sme_callout_mtx);
diff -r c878c666f19c -r 7894c74da274 sys/netinet/tcp_input.c
--- a/sys/netinet/tcp_input.c   Sun Sep 15 14:13:19 2013 +0000
+++ b/sys/netinet/tcp_input.c   Sun Sep 15 14:40:56 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tcp_input.c,v 1.328 2013/08/29 17:49:20 rmind Exp $    */
+/*     $NetBSD: tcp_input.c,v 1.329 2013/09/15 14:42:38 martin Exp $   */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -148,7 +148,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.328 2013/08/29 17:49:20 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.329 2013/09/15 14:42:38 martin Exp $");
 
 #include "opt_inet.h"
 #include "opt_ipsec.h"
@@ -997,13 +997,12 @@
                          struct mbuf *m, int tlen, int multicast)
 {
        int             tiflags;
-       int             todrop, dupseg;
+       int             todrop;
        uint32_t        t_flags = 0;
        uint64_t        *tcps;
 
        tiflags = th->th_flags;
        todrop  = vp->rcv_nxt - th->th_seq;
-       dupseg  = false;
 
        if (todrop > 0) {
                if (tiflags & TH_SYN) {
@@ -1033,7 +1032,6 @@
                         */
                        t_flags |= TF_ACKNOW;
                        todrop = tlen;
-                       dupseg = true;
                        tcps = TCP_STAT_GETREF();
                        tcps[TCP_STAT_RCVDUPPACK] += 1;
                        tcps[TCP_STAT_RCVDUPBYTE] += todrop;



Home | Main Index | Thread Index | Old Index