summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>2022-09-17 13:51:09 +0000
committerthorpej <thorpej@NetBSD.org>2022-09-17 13:51:09 +0000
commit83cdc039e897ee03a436418f6e7166bae55480d9 (patch)
treeed2e71394a849c1c462f463c8978081a7ad8cb9b /sys/dev
parent21a97a66249c15b3b72cd971831a084bd37a677f (diff)
age_start(): Remove redundant IFQ_IS_EMPTY(). This very same condition
is checked as soon as we enter the loop 2 statements later.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_age.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/pci/if_age.c b/sys/dev/pci/if_age.c
index fa6c953835d..8086db99de6 100644
--- a/sys/dev/pci/if_age.c
+++ b/sys/dev/pci/if_age.c
@@ -1,4 +1,4 @@
-/* $NetBSD: if_age.c,v 1.72 2022/08/22 16:18:44 thorpej Exp $ */
+/* $NetBSD: if_age.c,v 1.73 2022/09/17 13:51:09 thorpej Exp $ */
/* $OpenBSD: if_age.c,v 1.1 2009/01/16 05:00:34 kevlo Exp $ */
/*-
@@ -31,7 +31,7 @@
/* Driver for Attansic Technology Corp. L1 Gigabit Ethernet. */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_age.c,v 1.72 2022/08/22 16:18:44 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_age.c,v 1.73 2022/09/17 13:51:09 thorpej Exp $");
#include "vlan.h"
@@ -1062,8 +1062,6 @@ age_start(struct ifnet *ifp)
return;
if ((sc->age_flags & AGE_FLAG_LINK) == 0)
return;
- if (IFQ_IS_EMPTY(&ifp->if_snd))
- return;
enq = 0;
for (;;) {