Module Name:    src
Committed By:   maxv
Date:           Thu Feb  8 20:10:56 UTC 2018

Modified Files:
        src/sys/netinet: tcp_input.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.370 -r1.371 src/sys/netinet/tcp_input.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/netinet/tcp_input.c
diff -u src/sys/netinet/tcp_input.c:1.370 src/sys/netinet/tcp_input.c:1.371
--- src/sys/netinet/tcp_input.c:1.370	Thu Feb  8 20:06:21 2018
+++ src/sys/netinet/tcp_input.c	Thu Feb  8 20:10:55 2018
@@ -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 @@ nosave:;
 			dst.sin6.sin6_port = th->th_dport;
 			break;
 #endif /* INET6 */
-		default:
-			goto badsyn;	/*sanity*/
 		}
 
 		if ((tiflags & (TH_RST|TH_ACK|TH_SYN)) != TH_SYN) {

Reply via email to