Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/1403e1809c17
branches:  trunk
changeset: 321617:1403e1809c17
user:      maxv <maxv%NetBSD.org@localhost>
date:      Wed Mar 28 14:30:42 2018 +0000

description:
Remove unused variable.

diffstat:

 sys/netinet/tcp_input.c |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (32 lines):

diff -r f18d2e0797d1 -r 1403e1809c17 sys/netinet/tcp_input.c
--- a/sys/netinet/tcp_input.c   Wed Mar 28 14:22:16 2018 +0000
+++ b/sys/netinet/tcp_input.c   Wed Mar 28 14:30:42 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tcp_input.c,v 1.391 2018/03/28 14:22:16 maxv Exp $     */
+/*     $NetBSD: tcp_input.c,v 1.392 2018/03/28 14:30:42 maxv 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.391 2018/03/28 14:22:16 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.392 2018/03/28 14:30:42 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -4167,13 +4167,10 @@
        struct syn_cache *sc;
        struct syn_cache_head *scp;
        struct mbuf *ipopts;
-       struct tcp_opt_info opti;
        int s;
 
        tp = sototcpcb(so);
 
-       memset(&opti, 0, sizeof(opti));
-
        /*
         * Initialize some local state.
         */



Home | Main Index | Thread Index | Old Index