From 6f0f9b12fab4ae946914b45d89020301584557a2 Mon Sep 17 00:00:00 2001 From: Pyun YongHyeon Date: Mon, 8 Dec 2008 01:44:18 +0000 Subject: [PATCH] Make sure to return the result of meida change request. Previously it used to return success regardless of the result. --- sys/dev/re/if_re.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/dev/re/if_re.c b/sys/dev/re/if_re.c index 51e8237246b2..9120b1d329b4 100644 --- a/sys/dev/re/if_re.c +++ b/sys/dev/re/if_re.c @@ -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); } /*