UPdate previous so that there is no unused (but assigned) variable trunk
authorkre <kre@NetBSD.org>
Tue, 10 Jul 2018 19:30:37 +0000
branchtrunk
changeset 320523 a882bb5ca43c
parent 320522 2aa458db9cbe
child 320524 195de98c7740
UPdate previous so that there is no unused (but assigned) variable left when there is no ARP. Thanks gcc!
sys/net/if_llatbl.c
--- a/sys/net/if_llatbl.c	Tue Jul 10 18:43:20 2018 +0000
+++ b/sys/net/if_llatbl.c	Tue Jul 10 19:30:37 2018 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_llatbl.c,v 1.29 2018/07/10 11:00:40 kre Exp $	*/
+/*	$NetBSD: if_llatbl.c,v 1.30 2018/07/10 19:30:37 kre Exp $	*/
 /*
  * Copyright (c) 2004 Luigi Rizzo, Alessandro Cerri. All rights reserved.
  * Copyright (c) 2004-2008 Qing Li. All rights reserved.
@@ -690,12 +690,14 @@
 		 * conditions so remove it first.
 		 */
 		if (lle != NULL) {
+#if defined(INET) && NARP > 0
 			size_t pkts_dropped = llentry_free(lle);
-#if defined(INET) && NARP > 0
 			if (dst->sa_family == AF_INET) {
 				arp_stat_add(ARP_STAT_DFRDROPPED,
 				    (uint64_t)pkts_dropped);
 			}
+#else
+			(void) llentry_free(lle);
 #endif
 		}