From 3c7c27640ea5d8f36540ff0837a1549fa6028d42 Mon Sep 17 00:00:00 2001 From: martin Date: Sun, 15 Sep 2013 14:40:56 +0000 Subject: [PATCH] Remove unused variable --- sys/dev/sysmon/sysmon_envsys_events.c | 9 ++------- sys/netinet/tcp_input.c | 8 +++----- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/sys/dev/sysmon/sysmon_envsys_events.c b/sys/dev/sysmon/sysmon_envsys_events.c index 7459262db781..e479bd6587f7 100644 --- a/sys/dev/sysmon/sysmon_envsys_events.c +++ b/sys/dev/sysmon/sysmon_envsys_events.c @@ -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 -__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 #include @@ -705,7 +705,6 @@ sme_events_check(void *arg) { struct sysmon_envsys *sme = arg; sme_event_t *see; - uint64_t timo; KASSERT(sme != NULL); @@ -714,10 +713,6 @@ sme_events_check(void *arg) 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 --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 2d9856990e85..efe8f0d10bca 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -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 -__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 @@ static void tcp_vtw_input(struct tcphdr *th, vestigial_inpcb_t *vp, 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 @@ static void tcp_vtw_input(struct tcphdr *th, vestigial_inpcb_t *vp, */ t_flags |= TF_ACKNOW; todrop = tlen; - dupseg = true; tcps = TCP_STAT_GETREF(); tcps[TCP_STAT_RCVDUPPACK] += 1; tcps[TCP_STAT_RCVDUPBYTE] += todrop;