summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorbrad <brad@openbsd.org>2008-09-17 07:19:19 +0000
committerbrad <brad@openbsd.org>2008-09-17 07:19:19 +0000
commitfafdd4893ed942fe8f00df9d8e589d99abc1059d (patch)
tree2cddaa35ba442ef5bd73b9f243b145e1a9191ffa /sys
parenttry getlogin() to get the real username when comitting files as root. (diff)
downloadwireguard-openbsd-fafdd4893ed942fe8f00df9d8e589d99abc1059d.tar.xz
wireguard-openbsd-fafdd4893ed942fe8f00df9d8e589d99abc1059d.zip
Remove the unsupported media types explicitly listed in the switch cases
for MII_MEDIACHG. The default case will catch these media types. ok jsg@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/mii/ciphy.c3
-rw-r--r--sys/dev/mii/rgephy.c3
-rw-r--r--sys/dev/mii/xmphy.c5
3 files changed, 3 insertions, 8 deletions
diff --git a/sys/dev/mii/ciphy.c b/sys/dev/mii/ciphy.c
index 8954f797136..1a7085878fa 100644
--- a/sys/dev/mii/ciphy.c
+++ b/sys/dev/mii/ciphy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ciphy.c,v 1.20 2008/06/10 21:15:14 brad Exp $ */
+/* $OpenBSD: ciphy.c,v 1.21 2008/09/17 07:19:19 brad Exp $ */
/* $FreeBSD: ciphy.c,v 1.1 2004/09/10 20:57:45 wpaul Exp $ */
/*
* Copyright (c) 2004
@@ -209,7 +209,6 @@ setit:
case IFM_NONE:
PHY_WRITE(sc, MII_BMCR, BMCR_ISO|BMCR_PDOWN);
break;
- case IFM_100_T4:
default:
return (EINVAL);
}
diff --git a/sys/dev/mii/rgephy.c b/sys/dev/mii/rgephy.c
index 9b71c3941be..2c1ddbb950b 100644
--- a/sys/dev/mii/rgephy.c
+++ b/sys/dev/mii/rgephy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rgephy.c,v 1.28 2008/06/10 21:15:14 brad Exp $ */
+/* $OpenBSD: rgephy.c,v 1.29 2008/09/17 07:19:19 brad Exp $ */
/*
* Copyright (c) 2003
* Bill Paul <wpaul@windriver.com>. All rights reserved.
@@ -220,7 +220,6 @@ setit:
PHY_WRITE(sc, MII_BMCR, BMCR_ISO|BMCR_PDOWN);
break;
#endif
- case IFM_100_T4:
default:
return (EINVAL);
}
diff --git a/sys/dev/mii/xmphy.c b/sys/dev/mii/xmphy.c
index c54a18222a7..1d3e2eaba2f 100644
--- a/sys/dev/mii/xmphy.c
+++ b/sys/dev/mii/xmphy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xmphy.c,v 1.17 2006/12/31 15:04:33 krw Exp $ */
+/* $OpenBSD: xmphy.c,v 1.18 2008/09/17 07:19:19 brad Exp $ */
/*
* Copyright (c) 2000
@@ -182,9 +182,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);
}