svn commit: r214846 - head/sys/dev/xl

Marius Strobl marius at FreeBSD.org
Fri Nov 5 19:38:29 UTC 2010


Author: marius
Date: Fri Nov  5 19:38:28 2010
New Revision: 214846
URL: http://svn.freebsd.org/changeset/base/214846

Log:
  Correct an inverted check in r213893.

Modified:
  head/sys/dev/xl/if_xl.c

Modified: head/sys/dev/xl/if_xl.c
==============================================================================
--- head/sys/dev/xl/if_xl.c	Fri Nov  5 19:30:30 2010	(r214845)
+++ head/sys/dev/xl/if_xl.c	Fri Nov  5 19:38:28 2010	(r214846)
@@ -1461,7 +1461,7 @@ xl_attach(device_t dev)
 		 * control registers at all MII addresses.
 		 */
 		phy = MII_PHY_ANY;
-		if ((sc->xl_flags & XL_FLAG_PHYOK) != 0)
+		if ((sc->xl_flags & XL_FLAG_PHYOK) == 0)
 			phy = 24;
 		error = mii_attach(dev, &sc->xl_miibus, ifp, xl_ifmedia_upd,
 		    xl_ifmedia_sts, BMSR_DEFCAPMASK, phy, MII_OFFSET_ANY, 0);


More information about the svn-src-head mailing list