Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Nov 2010 14:25:04 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r215300 - head/sys/dev/mii
Message-ID:  <201011141425.oAEEP4t4084427@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marius
Date: Sun Nov 14 14:25:04 2010
New Revision: 215300
URL: http://svn.freebsd.org/changeset/base/215300

Log:
  Remove redundant cases and a style(9) bug.

Modified:
  head/sys/dev/mii/xmphy.c

Modified: head/sys/dev/mii/xmphy.c
==============================================================================
--- head/sys/dev/mii/xmphy.c	Sun Nov 14 14:12:43 2010	(r215299)
+++ head/sys/dev/mii/xmphy.c	Sun Nov 14 14:25:04 2010	(r215300)
@@ -167,7 +167,7 @@ xmphy_service(struct mii_softc *sc, stru
 			if (PHY_READ(sc, XMPHY_MII_BMCR) & XMPHY_BMCR_AUTOEN)
 				return (0);
 #endif
-			(void) xmphy_mii_phy_auto(sc);
+			(void)xmphy_mii_phy_auto(sc);
 			break;
 		case IFM_1000_SX:
 			mii_phy_reset(sc);
@@ -179,9 +179,6 @@ xmphy_service(struct mii_softc *sc, stru
 				PHY_WRITE(sc, XMPHY_MII_BMCR, 0);
 			}
 			break;
-		case IFM_100_T4:
-		case IFM_100_TX:
-		case IFM_10_T:
 		default:
 			return (EINVAL);
 		}



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