svn commit: r226481 - head/sys/dev/et
Pyun YongHyeon
yongari at FreeBSD.org
Mon Oct 17 20:03:39 UTC 2011
Author: yongari
Date: Mon Oct 17 20:03:38 2011
New Revision: 226481
URL: http://svn.freebsd.org/changeset/base/226481
Log:
Make sure to report media change status to caller. Previously it
always reported success.
Modified:
head/sys/dev/et/if_et.c
Modified: head/sys/dev/et/if_et.c
==============================================================================
--- head/sys/dev/et/if_et.c Mon Oct 17 19:58:34 2011 (r226480)
+++ head/sys/dev/et/if_et.c Mon Oct 17 20:03:38 2011 (r226481)
@@ -518,9 +518,7 @@ et_ifmedia_upd_locked(struct ifnet *ifp)
LIST_FOREACH(miisc, &mii->mii_phys, mii_list)
PHY_RESET(miisc);
- mii_mediachg(mii);
-
- return (0);
+ return (mii_mediachg(mii));
}
static int
More information about the svn-src-all
mailing list