git: 5f07d7fe408b - main - mgb: Fix DEBUG (and LINT) build

Li-Wen Hsu lwhsu at FreeBSD.org
Wed Sep 29 08:35:08 UTC 2021


The branch main has been updated by lwhsu:

URL: https://cgit.FreeBSD.org/src/commit/?id=5f07d7fe408bbca5c2f6755c363128107916c08d

commit 5f07d7fe408bbca5c2f6755c363128107916c08d
Author:     Li-Wen Hsu <lwhsu at FreeBSD.org>
AuthorDate: 2021-09-29 08:34:59 +0000
Commit:     Li-Wen Hsu <lwhsu at FreeBSD.org>
CommitDate: 2021-09-29 08:34:59 +0000

    mgb: Fix DEBUG (and LINT) build
    
    Sponsored by:   The FreeBSD Foundation
---
 sys/dev/mgb/if_mgb.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sys/dev/mgb/if_mgb.c b/sys/dev/mgb/if_mgb.c
index d4dda0bf65fd..bc944c92625c 100644
--- a/sys/dev/mgb/if_mgb.c
+++ b/sys/dev/mgb/if_mgb.c
@@ -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


More information about the dev-commits-src-main mailing list