aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2021-12-10 12:02:05 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2021-12-10 12:02:05 +0000
commit8f3562e2ca82c6d70a7ab026c34c3012bfa6dc84 (patch)
tree7380bc303cb96fce177aed75eb023687de0dee6a /sys/dev
parentceed3949bc80bed39f4d99a580beebf960bb61a3 (diff)
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/bfe/if_bfe.c6
1 files 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;