git: 8f3562e2ca82 - main - bfe: plug a set-but-not-unused var
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 10 Dec 2021 12:02:45 UTC
The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=8f3562e2ca82c6d70a7ab026c34c3012bfa6dc84 commit 8f3562e2ca82c6d70a7ab026c34c3012bfa6dc84 Author: Mateusz Guzik <mjg@FreeBSD.org> AuthorDate: 2021-12-10 12:02:05 +0000 Commit: Mateusz Guzik <mjg@FreeBSD.org> CommitDate: 2021-12-10 12:02:05 +0000 bfe: plug a set-but-not-unused var Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/dev/bfe/if_bfe.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/dev/bfe/if_bfe.c b/sys/dev/bfe/if_bfe.c index a6b79b353e30..4d3cb164c115 100644 --- a/sys/dev/bfe/if_bfe.c +++ b/sys/dev/bfe/if_bfe.c @@ -652,7 +652,10 @@ bfe_miibus_statchg(device_t dev) { struct bfe_softc *sc; struct mii_data *mii; - u_int32_t val, flow; + u_int32_t val; +#ifdef notyet + u_int32_t flow; +#endif sc = device_get_softc(dev); mii = device_get_softc(sc->bfe_miibus); @@ -675,7 +678,6 @@ bfe_miibus_statchg(device_t dev) val &= ~BFE_TX_DUPLEX; if ((IFM_OPTIONS(mii->mii_media_active) & IFM_FDX) != 0) { val |= BFE_TX_DUPLEX; - flow = 0; #ifdef notyet flow = CSR_READ_4(sc, BFE_RXCONF); flow &= ~BFE_RXCONF_FLOW;