Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci alc_start(): Remove redundant IFQ_IS_EMPTY(). T...
details: https://anonhg.NetBSD.org/src/rev/0c6f49fd4e5e
branches: trunk
changeset: 370100:0c6f49fd4e5e
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sat Sep 17 13:55:35 2022 +0000
description:
alc_start(): Remove redundant IFQ_IS_EMPTY(). This very same condition
is checked as soon as we enter the loop.
diffstat:
sys/dev/pci/if_alc.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diffs (18 lines):
diff -r 3f3a617e62f5 -r 0c6f49fd4e5e sys/dev/pci/if_alc.c
--- a/sys/dev/pci/if_alc.c Sat Sep 17 13:51:09 2022 +0000
+++ b/sys/dev/pci/if_alc.c Sat Sep 17 13:55:35 2022 +0000
@@ -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@localhost>
@@ -2024,8 +2024,6 @@
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)
Home |
Main Index |
Thread Index |
Old Index