Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet Remove the default case, the beginning of the fu...



details:   https://anonhg.NetBSD.org/src/rev/66147cd66f55
branches:  trunk
changeset: 829692:66147cd66f55
user:      maxv <maxv%NetBSD.org@localhost>
date:      Thu Feb 08 20:10:55 2018 +0000

description:
Remove the default case, the beginning of the function already ensures
af == AF_INET || af == AF_INET6.

diffstat:

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

diffs (27 lines):

diff -r d2511ed41a03 -r 66147cd66f55 sys/netinet/tcp_input.c
--- a/sys/netinet/tcp_input.c   Thu Feb 08 20:06:21 2018 +0000
+++ b/sys/netinet/tcp_input.c   Thu Feb 08 20:10:55 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tcp_input.c,v 1.370 2018/02/08 20:06:21 maxv Exp $     */
+/*     $NetBSD: tcp_input.c,v 1.371 2018/02/08 20:10:55 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.370 2018/02/08 20:06:21 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.371 2018/02/08 20:10:55 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -1656,8 +1656,6 @@
                        dst.sin6.sin6_port = th->th_dport;
                        break;
 #endif /* INET6 */
-               default:
-                       goto badsyn;    /*sanity*/
                }
 
                if ((tiflags & (TH_RST|TH_ACK|TH_SYN)) != TH_SYN) {



Home | Main Index | Thread Index | Old Index