summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>2022-09-17 13:55:35 +0000
committerthorpej <thorpej@NetBSD.org>2022-09-17 13:55:35 +0000
commit8520a718d4131dbfc414fb2c0259475b50097052 (patch)
tree2cc884b9d7b660f8164fcd4b50db16d2ee10c0e8 /sys/dev
parent83cdc039e897ee03a436418f6e7166bae55480d9 (diff)
alc_start(): Remove redundant IFQ_IS_EMPTY(). This very same condition
is checked as soon as we enter the loop.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_alc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/pci/if_alc.c b/sys/dev/pci/if_alc.c
index 83e4bc8a356..21c925ead86 100644
--- a/sys/dev/pci/if_alc.c
+++ b/sys/dev/pci/if_alc.c
@@ -1,4 +1,4 @@
-/* $NetBSD: if_alc.c,v 1.52 2020/03/01 03:06:08 thorpej Exp $ */
+/* $NetBSD: if_alc.c,v 1.53 2022/09/17 13:55:35 thorpej Exp $ */
/* $OpenBSD: if_alc.c,v 1.1 2009/08/08 09:31:13 kevlo Exp $ */
/*-
* Copyright (c) 2009, Pyun YongHyeon <yongari@FreeBSD.org>
@@ -2024,8 +2024,6 @@ alc_start(struct ifnet *ifp)
return;
if ((sc->alc_flags & ALC_FLAG_LINK) == 0)
return;
- if (IFQ_IS_EMPTY(&ifp->if_snd))
- return;
/* Reclaim transmitted frames. */
if (sc->alc_cdata.alc_tx_cnt >= ALC_TX_DESC_HIWAT)