summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2011-10-17 20:03:38 +0000
committeryongari <yongari@FreeBSD.org>2011-10-17 20:03:38 +0000
commit2ad42c354af6b1327487539d764fd46586df5d8e (patch)
tree519fb5648d386825dd4e3fa0872e3dad366076fe /sys/dev
parentfe97cb7e80dd317eb74507cd69a4855cde8f2981 (diff)
downloadFreeBSD-src-2ad42c354af6b1327487539d764fd46586df5d8e.zip
FreeBSD-src-2ad42c354af6b1327487539d764fd46586df5d8e.tar.gz
Make sure to report media change status to caller. Previously it
always reported success.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/et/if_et.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/et/if_et.c b/sys/dev/et/if_et.c
index 205255d..539224a 100644
--- a/sys/dev/et/if_et.c
+++ b/sys/dev/et/if_et.c
@@ -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
OpenPOWER on IntegriCloud