Module Name: src
Committed By: thorpej
Date: Sat Sep 17 13:51:09 UTC 2022
Modified Files:
src/sys/dev/pci: if_age.c
Log Message:
age_start(): Remove redundant IFQ_IS_EMPTY(). This very same condition
is checked as soon as we enter the loop 2 statements later.
To generate a diff of this commit:
cvs rdiff -u -r1.72 -r1.73 src/sys/dev/pci/if_age.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/pci/if_age.c
diff -u src/sys/dev/pci/if_age.c:1.72 src/sys/dev/pci/if_age.c:1.73
--- src/sys/dev/pci/if_age.c:1.72 Mon Aug 22 16:18:44 2022
+++ src/sys/dev/pci/if_age.c Sat Sep 17 13:51:09 2022
@@ -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 (;;) {