RE: [PATCH net 1/8] net: enetc: fix the off-by-one issue in enetc_map_tx_buffs()

From: Wei Fang
Date: Mon Feb 17 2025 - 21:12:18 EST


> On Mon, 17 Feb 2025 17:38:59 +0800 Wei Fang wrote:
> > + while (count--) {
> > tx_swbd = &tx_ring->tx_swbd[i];
> > enetc_free_tx_frame(tx_ring, tx_swbd);
> > if (i == 0)
> > i = tx_ring->bd_count;
> > i--;
> > - } while (count--);
> > + };
>
> I think this gives us:
>
> drivers/net/ethernet/freescale/enetc/enetc.c:408:2-3: Unneeded semicolon

Thanks, will fix it.

> --
> pw-bot: cr