diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-10-07 23:44:52 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-10-07 23:44:52 +0000 |
commit | a76cfd1eb6597d6a1129ed58022e9a842ecd9c2a (patch) | |
tree | 0a6f05b7afb09273063472bd3066347e056953db /sys/dev/mii/rgephy.c | |
parent | 495e52be679ec3d4d6d39cb2f307455aa5db47ff (diff) |
g/c unused code.
Diffstat (limited to 'sys/dev/mii/rgephy.c')
-rw-r--r-- | sys/dev/mii/rgephy.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/dev/mii/rgephy.c b/sys/dev/mii/rgephy.c index f28ed70a477..0813b3ebdec 100644 --- a/sys/dev/mii/rgephy.c +++ b/sys/dev/mii/rgephy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rgephy.c,v 1.16 2006/09/17 19:36:54 brad Exp $ */ +/* $OpenBSD: rgephy.c,v 1.17 2006/10/07 23:44:51 brad Exp $ */ /* * Copyright (c) 2003 * Bill Paul <wpaul@windriver.com>. All rights reserved. @@ -183,13 +183,6 @@ rgephy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) switch (IFM_SUBTYPE(ife->ifm_media)) { case IFM_AUTO: -#ifdef foo - /* - * If we're already in auto mode, just return. - */ - if (PHY_READ(sc, RGEPHY_MII_BMCR) & RGEPHY_BMCR_AUTOEN) - return (0); -#endif (void) rgephy_mii_phy_auto(sc); break; case IFM_1000_T: @@ -235,7 +228,7 @@ setit: RGEPHY_BMCR_AUTOEN | RGEPHY_BMCR_STARTNEG); PHY_WRITE(sc, RGEPHY_MII_ANAR, anar); break; -#ifdef foo +#if 0 case IFM_NONE: PHY_WRITE(sc, MII_BMCR, BMCR_ISO|BMCR_PDOWN); break; |