Remove unused variable.
Found with: Coverity Prevent(tm) CID: 549
This commit is contained in:
parent
75c4b82c36
commit
6282e61346
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=192024
@ -1257,7 +1257,6 @@ lge_init_locked(sc)
|
|||||||
struct lge_softc *sc;
|
struct lge_softc *sc;
|
||||||
{
|
{
|
||||||
struct ifnet *ifp = sc->lge_ifp;
|
struct ifnet *ifp = sc->lge_ifp;
|
||||||
struct mii_data *mii;
|
|
||||||
|
|
||||||
LGE_LOCK_ASSERT(sc);
|
LGE_LOCK_ASSERT(sc);
|
||||||
if (ifp->if_drv_flags & IFF_DRV_RUNNING)
|
if (ifp->if_drv_flags & IFF_DRV_RUNNING)
|
||||||
@ -1269,8 +1268,6 @@ lge_init_locked(sc)
|
|||||||
lge_stop(sc);
|
lge_stop(sc);
|
||||||
lge_reset(sc);
|
lge_reset(sc);
|
||||||
|
|
||||||
mii = device_get_softc(sc->lge_miibus);
|
|
||||||
|
|
||||||
/* Set MAC address */
|
/* Set MAC address */
|
||||||
CSR_WRITE_4(sc, LGE_PAR0, *(u_int32_t *)(&IF_LLADDR(sc->lge_ifp)[0]));
|
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]));
|
CSR_WRITE_4(sc, LGE_PAR1, *(u_int32_t *)(&IF_LLADDR(sc->lge_ifp)[4]));
|
||||||
|
Loading…
Reference in New Issue
Block a user