diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2006-12-29 11:03:47 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2006-12-29 11:03:47 +0000 |
commit | 96a5808ca2bb58798649eb1c6768e789643cff14 (patch) | |
tree | c9a594edd4a7bf435d19b66c6f77638eaa088870 /sys/dev | |
parent | 92e8089189538807a1d2876e489e79d41fea9f6d (diff) |
No need to read ANAR and ANLPAR anymore.
From brad@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/mii/eephy.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/mii/eephy.c b/sys/dev/mii/eephy.c index 2d9dafd8459..b86e708c73a 100644 --- a/sys/dev/mii/eephy.c +++ b/sys/dev/mii/eephy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: eephy.c,v 1.36 2006/12/28 09:26:19 kettenis Exp $ */ +/* $OpenBSD: eephy.c,v 1.37 2006/12/29 11:03:46 kettenis Exp $ */ /* * Principal Author: Parag Patel * Copyright (c) 2001 @@ -396,7 +396,7 @@ void eephy_status(struct mii_softc *sc) { struct mii_data *mii = sc->mii_pdata; - int bmsr, bmcr, gsr, ssr, ar, lpar; + int bmsr, bmcr, gsr, ssr; mii->mii_media_status = IFM_AVALID; mii->mii_media_active = IFM_ETHER; @@ -404,8 +404,6 @@ eephy_status(struct mii_softc *sc) bmsr = PHY_READ(sc, E1000_SR) | PHY_READ(sc, E1000_SR); bmcr = PHY_READ(sc, E1000_CR); ssr = PHY_READ(sc, E1000_SSR); - ar = PHY_READ(sc, E1000_AR); - lpar = PHY_READ(sc, E1000_LPAR); if (bmsr & E1000_SR_LINK_STATUS) mii->mii_media_status |= IFM_ACTIVE; |