summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrad <brad@openbsd.org>2008-09-11 18:26:58 +0000
committerbrad <brad@openbsd.org>2008-09-11 18:26:58 +0000
commit21d0bd4c4cfa84f0e8e6f8e3f513e884bcc76ea5 (patch)
treee8f08647e20630dd2d2fcde1a2f643f26900d07e
parentMbit/s -> Mbps (diff)
downloadwireguard-openbsd-21d0bd4c4cfa84f0e8e6f8e3f513e884bcc76ea5.tar.xz
wireguard-openbsd-21d0bd4c4cfa84f0e8e6f8e3f513e884bcc76ea5.zip
In rlphy_service() for the MII_TICK case don't bother to check whether
the currently selected media is of type IFM_AUTO as autonegotiation does not need to be kicked anyway.
-rw-r--r--sys/dev/mii/rlphy.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/dev/mii/rlphy.c b/sys/dev/mii/rlphy.c
index f2b118b43a6..555e8ddec59 100644
--- a/sys/dev/mii/rlphy.c
+++ b/sys/dev/mii/rlphy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rlphy.c,v 1.29 2008/09/08 07:38:33 brad Exp $ */
+/* $OpenBSD: rlphy.c,v 1.30 2008/09/11 18:26:58 brad Exp $ */
/*
* Copyright (c) 1998, 1999 Jason L. Wright (jason@thought.net)
@@ -195,12 +195,6 @@ rlphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd)
return (0);
/*
- * Only used for autonegotiation.
- */
- if (IFM_SUBTYPE(ife->ifm_media) != IFM_AUTO)
- break;
-
- /*
* The RealTek PHY's autonegotiation doesn't need to be
* kicked; it continues in the background.
*/