summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2012-05-11 03:17:32 +0000
committerkevlo <kevlo@FreeBSD.org>2012-05-11 03:17:32 +0000
commitcd6d4aa47d065085456ba24459657f56bcff74b7 (patch)
tree541fc4deb22575f9a778246b58d2b73e7bf7d41c
parent81d1426c8d9bd5265a2bf72a60b10dd4ddb26412 (diff)
downloadFreeBSD-src-cd6d4aa47d065085456ba24459657f56bcff74b7.zip
FreeBSD-src-cd6d4aa47d065085456ba24459657f56bcff74b7.tar.gz
Remove unused variable mii.
This variable is initialized but not used.
-rw-r--r--sys/dev/sf/if_sf.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/sf/if_sf.c b/sys/dev/sf/if_sf.c
index 4f8002e..ec3aa27 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. */
OpenPOWER on IntegriCloud