Date: Mon, 25 May 2009 03:53:12 +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: r192720 - head/sys/dev/msk Message-ID: <200905250353.n4P3rCcG009970@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: yongari Date: Mon May 25 03:53:12 2009 New Revision: 192720 URL: http://svn.freebsd.org/changeset/base/192720 Log: Correctly return the result of mii_mediachg(). Previously it always used to return success. Modified: head/sys/dev/msk/if_msk.c Modified: head/sys/dev/msk/if_msk.c ============================================================================== --- head/sys/dev/msk/if_msk.c Mon May 25 03:49:43 2009 (r192719) +++ head/sys/dev/msk/if_msk.c Mon May 25 03:53:12 2009 (r192720) @@ -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); } /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905250353.n4P3rCcG009970>