Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet Remove two more 'else' branches.



details:   https://anonhg.NetBSD.org/src/rev/fb5ed1f4beba
branches:  trunk
changeset: 831416:fb5ed1f4beba
user:      maxv <maxv%NetBSD.org@localhost>
date:      Thu Mar 29 17:12:36 2018 +0000

description:
Remove two more 'else' branches.

diffstat:

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

diffs (39 lines):

diff -r 246fd9506714 -r fb5ed1f4beba sys/netinet/tcp_input.c
--- a/sys/netinet/tcp_input.c   Thu Mar 29 17:09:00 2018 +0000
+++ b/sys/netinet/tcp_input.c   Thu Mar 29 17:12:36 2018 +0000
@@ -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 @@
        if ((tiflags & TH_ACK) == 0) {
                if (t_flags & TF_ACKNOW)
                        goto dropafterack;
-               else
-                       goto drop;
+               goto drop;
        }
 
        /*
@@ -2539,8 +2538,8 @@
                                        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);



Home | Main Index | Thread Index | Old Index