Module Name:    src
Committed By:   thorpej
Date:           Sat Sep 17 13:55:35 UTC 2022

Modified Files:
        src/sys/dev/pci: if_alc.c

Log Message:
alc_start(): Remove redundant IFQ_IS_EMPTY().  This very same condition
is checked as soon as we enter the loop.


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/sys/dev/pci/if_alc.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_alc.c
diff -u src/sys/dev/pci/if_alc.c:1.52 src/sys/dev/pci/if_alc.c:1.53
--- src/sys/dev/pci/if_alc.c:1.52	Sun Mar  1 03:06:08 2020
+++ src/sys/dev/pci/if_alc.c	Sat Sep 17 13:55:35 2022
@@ -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 <yong...@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)

Reply via email to