svn commit: r185752 - head/sys/dev/re

Pyun YongHyeon yongari at FreeBSD.org
Sun Dec 7 17:44:18 PST 2008


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);
 }
 
 /*


More information about the svn-src-all mailing list