1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-30 12:04:07 +00:00

Fix regression introduced in r215132. Caller always holds a driver

lock before accessing mii, so locking is not needed here.

Reported by:	Rob Farmer (rfarmer <> predatorlabs dot net)
This commit is contained in:
Pyun YongHyeon 2010-11-12 19:33:13 +00:00
parent 68d5e11c9f
commit 603b8e29db
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=215194

View File

@ -817,8 +817,6 @@ nfe_miibus_statchg(device_t dev)
sc = device_get_softc(dev); sc = device_get_softc(dev);
NFE_LOCK(sc);
mii = device_get_softc(sc->nfe_miibus); mii = device_get_softc(sc->nfe_miibus);
ifp = sc->nfe_ifp; ifp = sc->nfe_ifp;
@ -848,8 +846,6 @@ nfe_miibus_statchg(device_t dev)
} }
NFE_WRITE(sc, NFE_TX_CTL, txctl); NFE_WRITE(sc, NFE_TX_CTL, txctl);
NFE_WRITE(sc, NFE_RX_CTL, rxctl); NFE_WRITE(sc, NFE_RX_CTL, rxctl);
NFE_UNLOCK(sc);
} }