Module Name: src
Committed By: maxv
Date: Thu Mar 29 17:12:36 UTC 2018
Modified Files:
src/sys/netinet: tcp_input.c
Log Message:
Remove two more 'else' branches.
To generate a diff of this commit:
cvs rdiff -u -r1.397 -r1.398 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.397 src/sys/netinet/tcp_input.c:1.398
--- src/sys/netinet/tcp_input.c:1.397 Thu Mar 29 17:09:00 2018
+++ src/sys/netinet/tcp_input.c Thu Mar 29 17:12:36 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: tcp_input.c,v 1.397 2018/03/29 17:09:00 maxv Exp $ */
+/* $NetBSD: tcp_input.c,v 1.398 2018/03/29 17:12:36 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.397 2018/03/29 17:09:00 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.398 2018/03/29 17:12:36 maxv Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -1142,8 +1142,7 @@ static void tcp_vtw_input(struct tcphdr
if ((tiflags & TH_ACK) == 0) {
if (t_flags & TF_ACKNOW)
goto dropafterack;
- else
- goto drop;
+ goto drop;
}
/*
@@ -2539,8 +2538,8 @@ after_listen:
if (tp->t_congctl->fast_retransmit(tp, th)) {
/* False fast retransmit */
break;
- } else
- goto drop;
+ }
+ goto drop;
} else if (tp->t_dupacks > tcprexmtthresh) {
tp->snd_cwnd += tp->t_segsz;
KERNEL_LOCK(1, NULL);