diff options
author | yongari <yongari@FreeBSD.org> | 2009-05-25 03:53:12 +0000 |
---|---|---|
committer | yongari <yongari@FreeBSD.org> | 2009-05-25 03:53:12 +0000 |
commit | ad889c084734fd82819a3874510953f11f4cc289 (patch) | |
tree | f6e1f30bdba248752e11c716fc4c74dbdc02cb78 /sys/dev/msk | |
parent | 67f6eef981d0e53d7607de7d89dfdf1ee6371c70 (diff) | |
download | FreeBSD-src-ad889c084734fd82819a3874510953f11f4cc289.zip FreeBSD-src-ad889c084734fd82819a3874510953f11f4cc289.tar.gz |
Correctly return the result of mii_mediachg(). Previously it always
used to return success.
Diffstat (limited to 'sys/dev/msk')
-rw-r--r-- | sys/dev/msk/if_msk.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/msk/if_msk.c b/sys/dev/msk/if_msk.c index 30cd67c..9e84d82 100644 --- a/sys/dev/msk/if_msk.c +++ b/sys/dev/msk/if_msk.c @@ -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); } /* |