From 87ba494b0e95ef236d67b77319da9c1ef3d70078 Mon Sep 17 00:00:00 2001 From: Kevin Lo Date: Fri, 11 May 2012 03:17:32 +0000 Subject: [PATCH] Remove unused variable mii. This variable is initialized but not used. --- sys/dev/sf/if_sf.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/dev/sf/if_sf.c b/sys/dev/sf/if_sf.c index 4f8002e0ddc..ec3aa27abb2 100644 --- a/sys/dev/sf/if_sf.c +++ b/sys/dev/sf/if_sf.c @@ -1984,7 +1984,6 @@ static void sf_init_locked(struct sf_softc *sc) { struct ifnet *ifp; - struct mii_data *mii; uint8_t eaddr[ETHER_ADDR_LEN]; bus_addr_t addr; int i; @@ -1993,7 +1992,6 @@ sf_init_locked(struct sf_softc *sc) ifp = sc->sf_ifp; if ((ifp->if_drv_flags & IFF_DRV_RUNNING) != 0) return; - mii = device_get_softc(sc->sf_miibus); sf_stop(sc); /* Reset the hardware to a known state. */