Make sure to return the result of meida change request.

Previously it used to return success regardless of the result.
This commit is contained in:
Pyun YongHyeon 2008-12-08 01:44:18 +00:00
parent 609ff41f16
commit 6f0f9b12fa

View File

@ -2652,14 +2652,15 @@ re_ifmedia_upd(struct ifnet *ifp)
{
struct rl_softc *sc;
struct mii_data *mii;
int error;
sc = ifp->if_softc;
mii = device_get_softc(sc->rl_miibus);
RL_LOCK(sc);
mii_mediachg(mii);
error = mii_mediachg(mii);
RL_UNLOCK(sc);
return (0);
return (error);
}
/*