summaryrefslogtreecommitdiffstats
path: root/sys/dev/mii/mlphy.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-04-28 19:01:32 +0000
committerphk <phk@FreeBSD.org>2002-04-28 19:01:32 +0000
commit9f962d970296a65cad01319f5dcf77a6e1c26586 (patch)
tree41e4fb420a210198ceda45a48df9124ccd9011e1 /sys/dev/mii/mlphy.c
parentd3a0fb2abdce5db9dedee01400b823e596da3ff2 (diff)
downloadFreeBSD-src-9f962d970296a65cad01319f5dcf77a6e1c26586.zip
FreeBSD-src-9f962d970296a65cad01319f5dcf77a6e1c26586.tar.gz
Improve an API by about 4 lines per driver.
Diffstat (limited to 'sys/dev/mii/mlphy.c')
-rw-r--r--sys/dev/mii/mlphy.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/mii/mlphy.c b/sys/dev/mii/mlphy.c
index 266f262..0cda976 100644
--- a/sys/dev/mii/mlphy.c
+++ b/sys/dev/mii/mlphy.c
@@ -167,11 +167,7 @@ static int mlphy_attach(dev)
PHY_READ(sc, MII_BMSR) & ma->mii_capmask;
ma->mii_capmask = ~sc->mii_capabilities;
device_printf(dev, " ");
- if ((sc->mii_capabilities & BMSR_MEDIAMASK) == 0)
- printf("no media present");
- else
- mii_add_media(mii, sc->mii_capabilities,
- sc->mii_inst);
+ mii_add_media(mii, sc->mii_capabilities, sc->mii_inst);
printf("\n");
#undef ADD
MIIBUS_MEDIAINIT(sc->mii_dev);
OpenPOWER on IntegriCloud