summaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authormaxv <maxv@NetBSD.org>2018-03-29 17:12:36 +0000
committermaxv <maxv@NetBSD.org>2018-03-29 17:12:36 +0000
commit138c19ae9effbdb2caeda09374b6791a00614c35 (patch)
tree2c2bd4605ffb2d4ad8abc8e4a25b8d4e061a63ce /sys/netinet
parent123bc4debe4a35dba8f7fb4c3cf2e9521987e447 (diff)
Remove two more 'else' branches.
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/tcp_input.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index 6c3ebc135c1..3b1e4d0d67d 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -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 *th, vestigial_inpcb_t *vp,
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);