Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet Use only one label, clearer.



details:   https://anonhg.NetBSD.org/src/rev/8225789b781e
branches:  trunk
changeset: 829803:8225789b781e
user:      maxv <maxv%NetBSD.org@localhost>
date:      Tue Feb 13 08:20:12 2018 +0000

description:
Use only one label, clearer.

diffstat:

 sys/netinet/if_arp.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (53 lines):

diff -r f1169b47379a -r 8225789b781e sys/netinet/if_arp.c
--- a/sys/netinet/if_arp.c      Tue Feb 13 07:51:24 2018 +0000
+++ b/sys/netinet/if_arp.c      Tue Feb 13 08:20:12 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_arp.c,v 1.258 2018/02/13 07:51:24 maxv Exp $        */
+/*     $NetBSD: if_arp.c,v 1.259 2018/02/13 08:20:12 maxv Exp $        */
 
 /*
  * Copyright (c) 1998, 2000, 2008 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_arp.c,v 1.258 2018/02/13 07:51:24 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_arp.c,v 1.259 2018/02/13 08:20:12 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -1033,14 +1033,15 @@
 
        ifp = if_get_bylla(ar_sha(ah), ah->ar_hln, &psref);
        if (ifp) {
+               /* it's from me, ignore it. */
                if_put(ifp, &psref);
                ARP_STATINC(ARP_STAT_RCVLOCALSHA);
-               goto out;       /* it's from me, ignore it. */
+               goto out;
        }
 
        rcvif = ifp = m_get_rcvif_psref(m, &psref);
        if (__predict_false(rcvif == NULL))
-               goto drop;
+               goto out;
 
        /*
         * Fix up ah->ar_hrd if necessary, before using ar_tha() or ar_tpa().
@@ -1367,7 +1368,7 @@
                } else {
                        if (lle != NULL)
                                LLE_RUNLOCK(lle);
-                       goto drop;
+                       goto out;
                }
        }
        ia4_release(ia, &psref_ia);
@@ -1405,7 +1406,6 @@
 out:
        if (la != NULL)
                LLE_WUNLOCK(la);
-drop:
        if (ia != NULL)
                ia4_release(ia, &psref_ia);
        if (rcvif != NULL)



Home | Main Index | Thread Index | Old Index