Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Oct 2011 20:03:39 +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: r226481 - head/sys/dev/et
Message-ID:  <201110172003.p9HK3dVR038812@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110172003.p9HK3dVR038812>