Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet Remove 'else', makes it clearer that we leave.



details:   https://anonhg.NetBSD.org/src/rev/f295435dd1e7
branches:  trunk
changeset: 360758:f295435dd1e7
user:      maxv <maxv%NetBSD.org@localhost>
date:      Thu Mar 29 17:01:46 2018 +0000

description:
Remove 'else', makes it clearer that we leave.

diffstat:

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

diffs (28 lines):

diff -r bb0d38e3ca25 -r f295435dd1e7 sys/netinet/tcp_input.c
--- a/sys/netinet/tcp_input.c   Thu Mar 29 16:59:38 2018 +0000
+++ b/sys/netinet/tcp_input.c   Thu Mar 29 17:01:46 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tcp_input.c,v 1.395 2018/03/29 16:59:38 maxv Exp $     */
+/*     $NetBSD: tcp_input.c,v 1.396 2018/03/29 17:01:46 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.395 2018/03/29 16:59:38 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.396 2018/03/29 17:01:46 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -2463,8 +2463,7 @@
        if ((tiflags & TH_ACK) == 0) {
                if (tp->t_flags & TF_ACKNOW)
                        goto dropafterack;
-               else
-                       goto drop;
+               goto drop;
        }
 
        /*



Home | Main Index | Thread Index | Old Index