From 8f3562e2ca82c6d70a7ab026c34c3012bfa6dc84 Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Fri, 10 Dec 2021 12:02:05 +0000 Subject: 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(-) (limited to 'sys/dev') 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; -- cgit v1.3