summaryrefslogtreecommitdiffstats
path: root/sys/dev/mii
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2010-11-14 14:25:04 +0000
committermarius <marius@FreeBSD.org>2010-11-14 14:25:04 +0000
commit2cc8d62e9456aba6371a0711b5f25683c11dd22b (patch)
tree0917784f427dbbf794f598be8aa0499f2d9354a2 /sys/dev/mii
parent4ee939c936810cdbeb5d64f9b2b28890e4af0814 (diff)
downloadFreeBSD-src-2cc8d62e9456aba6371a0711b5f25683c11dd22b.zip
FreeBSD-src-2cc8d62e9456aba6371a0711b5f25683c11dd22b.tar.gz
Remove redundant cases and a style(9) bug.
Diffstat (limited to 'sys/dev/mii')
-rw-r--r--sys/dev/mii/xmphy.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/mii/xmphy.c b/sys/dev/mii/xmphy.c
index 745c7b3..d662687 100644
--- a/sys/dev/mii/xmphy.c
+++ b/sys/dev/mii/xmphy.c
@@ -167,7 +167,7 @@ xmphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd)
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, struct mii_data *mii, int cmd)
PHY_WRITE(sc, XMPHY_MII_BMCR, 0);
}
break;
- case IFM_100_T4:
- case IFM_100_TX:
- case IFM_10_T:
default:
return (EINVAL);
}
OpenPOWER on IntegriCloud