Date: Mon, 8 Dec 2008 01:44:18 +0000 (UTC) From: Pyun YongHyeon <yongari@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r185752 - head/sys/dev/re Message-ID: <200812080144.mB81iIF0041697@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: yongari Date: Mon Dec 8 01:44:18 2008 New Revision: 185752 URL: http://svn.freebsd.org/changeset/base/185752 Log: Make sure to return the result of meida change request. Previously it used to return success regardless of the result. Modified: head/sys/dev/re/if_re.c Modified: head/sys/dev/re/if_re.c ============================================================================== --- head/sys/dev/re/if_re.c Mon Dec 8 00:28:21 2008 (r185751) +++ head/sys/dev/re/if_re.c Mon Dec 8 01:44:18 2008 (r185752) @@ -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); } /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812080144.mB81iIF0041697>