Correctly return the result of mii_mediachg(). Previously it always
used to return success.
This commit is contained in:
parent
7a76e8a489
commit
325c534e4a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=192720
@ -856,15 +856,16 @@ msk_mediachange(struct ifnet *ifp)
|
||||
{
|
||||
struct msk_if_softc *sc_if;
|
||||
struct mii_data *mii;
|
||||
int error;
|
||||
|
||||
sc_if = ifp->if_softc;
|
||||
|
||||
MSK_IF_LOCK(sc_if);
|
||||
mii = device_get_softc(sc_if->msk_miibus);
|
||||
mii_mediachg(mii);
|
||||
error = mii_mediachg(mii);
|
||||
MSK_IF_UNLOCK(sc_if);
|
||||
|
||||
return (0);
|
||||
return (error);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user