From 98998cdcc8756568297d7c3144acd9e209657ded Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Thu, 11 Sep 2008 18:26:59 +0000 Subject: 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. --- sys/dev/mii/rlphy.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'sys') 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) @@ -194,12 +194,6 @@ rlphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) if ((mii->mii_ifp->if_flags & IFF_UP) == 0) 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. -- cgit v1.2.3