Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet Move insane goto label
details: https://anonhg.NetBSD.org/src/rev/3e125424c934
branches: trunk
changeset: 339814:3e125424c934
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Wed Aug 12 07:13:14 2015 +0000
description:
Move insane goto label
diffstat:
sys/netinet/if_arp.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (38 lines):
diff -r 6b09885bb07c -r 3e125424c934 sys/netinet/if_arp.c
--- a/sys/netinet/if_arp.c Wed Aug 12 02:20:31 2015 +0000
+++ b/sys/netinet/if_arp.c Wed Aug 12 07:13:14 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_arp.c,v 1.171 2015/08/07 08:11:33 ozaki-r Exp $ */
+/* $NetBSD: if_arp.c,v 1.172 2015/08/12 07:13:14 ozaki-r 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.171 2015/08/07 08:11:33 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_arp.c,v 1.172 2015/08/12 07:13:14 ozaki-r Exp $");
#include "opt_ddb.h"
#include "opt_inet.h"
@@ -1243,9 +1243,7 @@
if (op != ARPOP_REQUEST) {
if (op == ARPOP_REPLY)
ARP_STATINC(ARP_STAT_RCVREPLY);
- out:
- m_freem(m);
- return;
+ goto out;
}
ARP_STATINC(ARP_STAT_RCVREQUEST);
if (in_hosteq(itaddr, myaddr)) {
@@ -1300,6 +1298,8 @@
ARP_STAT_PUTREF();
(*ifp->if_output)(ifp, m, &sa, NULL);
return;
+out:
+ m_freem(m);
}
/*
Home |
Main Index |
Thread Index |
Old Index