mgb: Fix DEBUG (and LINT) build

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Li-Wen Hsu 2021-09-29 16:34:59 +08:00
parent 36a87d0c6f
commit 5f07d7fe40
No known key found for this signature in database
GPG key ID: 82B261B14D3BC7AF

View file

@ -693,7 +693,6 @@ mgb_dump_some_stats(struct mgb_softc *sc)
i, sc->tx_ring_data.ring[i].addr.high,
i, sc->tx_ring_data.ring[i].sts);
device_printf(sc->dev, "==== DUMP_TX_DMA_RAM ====\n");
int i;
CSR_WRITE_REG(sc, 0x24, 0xF); // DP_SEL & TX_RAM_0
for (i = 0; i < 128; i++) {
CSR_WRITE_REG(sc, 0x2C, i); // DP_ADDR