svn commit: r235257 - head/sys/dev/sf

Kevin Lo kevlo at FreeBSD.org
Fri May 11 03:17:33 UTC 2012


Author: kevlo
Date: Fri May 11 03:17:32 2012
New Revision: 235257
URL: http://svn.freebsd.org/changeset/base/235257

Log:
  Remove unused variable mii.
  This variable is initialized but not used.

Modified:
  head/sys/dev/sf/if_sf.c

Modified: head/sys/dev/sf/if_sf.c
==============================================================================
--- head/sys/dev/sf/if_sf.c	Fri May 11 03:15:22 2012	(r235256)
+++ head/sys/dev/sf/if_sf.c	Fri May 11 03:17:32 2012	(r235257)
@@ -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. */


More information about the svn-src-head mailing list