Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci age_start(): Remove redundant IFQ_IS_EMPTY(). T...



details:   https://anonhg.NetBSD.org/src/rev/3f3a617e62f5
branches:  trunk
changeset: 370099:3f3a617e62f5
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sat Sep 17 13:51:09 2022 +0000

description:
age_start(): Remove redundant IFQ_IS_EMPTY().  This very same condition
is checked as soon as we enter the loop 2 statements later.

diffstat:

 sys/dev/pci/if_age.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r ccb7bc0bac59 -r 3f3a617e62f5 sys/dev/pci/if_age.c
--- a/sys/dev/pci/if_age.c      Sat Sep 17 06:33:55 2022 +0000
+++ b/sys/dev/pci/if_age.c      Sat Sep 17 13:51:09 2022 +0000
@@ -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 @@
                return;
        if ((sc->age_flags & AGE_FLAG_LINK) == 0)
                return;
-       if (IFQ_IS_EMPTY(&ifp->if_snd))
-               return;
 
        enq = 0;
        for (;;) {



Home | Main Index | Thread Index | Old Index