diff options
author | phk <phk@FreeBSD.org> | 2002-04-28 19:01:32 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-04-28 19:01:32 +0000 |
commit | 9f962d970296a65cad01319f5dcf77a6e1c26586 (patch) | |
tree | 41e4fb420a210198ceda45a48df9124ccd9011e1 /sys/dev/mii/acphy.c | |
parent | d3a0fb2abdce5db9dedee01400b823e596da3ff2 (diff) | |
download | FreeBSD-src-9f962d970296a65cad01319f5dcf77a6e1c26586.zip FreeBSD-src-9f962d970296a65cad01319f5dcf77a6e1c26586.tar.gz |
Improve an API by about 4 lines per driver.
Diffstat (limited to 'sys/dev/mii/acphy.c')
-rw-r--r-- | sys/dev/mii/acphy.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/mii/acphy.c b/sys/dev/mii/acphy.c index e163db7..6295891 100644 --- a/sys/dev/mii/acphy.c +++ b/sys/dev/mii/acphy.c @@ -161,9 +161,7 @@ static int acphy_attach(dev) sc->mii_capabilities = PHY_READ(sc, MII_BMSR) & ma->mii_capmask; device_printf(dev, " "); - if (sc->mii_capabilities & BMSR_MEDIAMASK) - mii_add_media(mii, sc->mii_capabilities, - sc->mii_inst); + mii_add_media(mii, sc->mii_capabilities, sc->mii_inst); printf("\n"); MIIBUS_MEDIAINIT(sc->mii_dev); |