aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/alc
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2022-07-16 15:06:31 +0000
committerDimitry Andric <dim@FreeBSD.org>2022-07-20 17:07:28 +0000
commit64741244fc4588eefd954948b77ddf2706448ecd (patch)
tree9fc19410e5302545fe25d3027f6fa60f5d80c6de /sys/dev/alc
parent9a979788832e1c31d58923e4c780a6c4b05335d0 (diff)
Diffstat (limited to 'sys/dev/alc')
-rw-r--r--sys/dev/alc/if_alc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/alc/if_alc.c b/sys/dev/alc/if_alc.c
index 128786f2bf0c..dc1df6753811 100644
--- a/sys/dev/alc/if_alc.c
+++ b/sys/dev/alc/if_alc.c
@@ -3438,7 +3438,6 @@ alc_txeof(struct alc_softc *sc)
struct ifnet *ifp;
struct alc_txdesc *txd;
uint32_t cons, prod;
- int prog;
ALC_LOCK_ASSERT(sc);
@@ -3467,11 +3466,9 @@ alc_txeof(struct alc_softc *sc)
* Go through our Tx list and free mbufs for those
* frames which have been transmitted.
*/
- for (prog = 0; cons != prod; prog++,
- ALC_DESC_INC(cons, ALC_TX_RING_CNT)) {
+ for (; cons != prod; ALC_DESC_INC(cons, ALC_TX_RING_CNT)) {
if (sc->alc_cdata.alc_tx_cnt <= 0)
break;
- prog++;
ifp->if_drv_flags &= ~IFF_DRV_OACTIVE;
sc->alc_cdata.alc_tx_cnt--;
txd = &sc->alc_cdata.alc_txdesc[cons];