svn commit: r192024 - head/sys/dev/lge
Christian Brueffer
brueffer at FreeBSD.org
Tue May 12 19:33:37 UTC 2009
Author: brueffer
Date: Tue May 12 19:33:36 2009
New Revision: 192024
URL: http://svn.freebsd.org/changeset/base/192024
Log:
Remove unused variable.
Found with: Coverity Prevent(tm)
CID: 549
Modified:
head/sys/dev/lge/if_lge.c
Modified: head/sys/dev/lge/if_lge.c
==============================================================================
--- head/sys/dev/lge/if_lge.c Tue May 12 19:30:46 2009 (r192023)
+++ head/sys/dev/lge/if_lge.c Tue May 12 19:33:36 2009 (r192024)
@@ -1257,7 +1257,6 @@ lge_init_locked(sc)
struct lge_softc *sc;
{
struct ifnet *ifp = sc->lge_ifp;
- struct mii_data *mii;
LGE_LOCK_ASSERT(sc);
if (ifp->if_drv_flags & IFF_DRV_RUNNING)
@@ -1269,8 +1268,6 @@ lge_init_locked(sc)
lge_stop(sc);
lge_reset(sc);
- mii = device_get_softc(sc->lge_miibus);
-
/* Set MAC address */
CSR_WRITE_4(sc, LGE_PAR0, *(u_int32_t *)(&IF_LLADDR(sc->lge_ifp)[0]));
CSR_WRITE_4(sc, LGE_PAR1, *(u_int32_t *)(&IF_LLADDR(sc->lge_ifp)[4]));
More information about the svn-src-head
mailing list