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/dc/dcphy.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/dc/dcphy.c')
-rw-r--r-- | sys/dev/dc/dcphy.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/dc/dcphy.c b/sys/dev/dc/dcphy.c index e957869..86912d7 100644 --- a/sys/dev/dc/dcphy.c +++ b/sys/dev/dc/dcphy.c @@ -196,10 +196,7 @@ static int dcphy_attach(dev) sc->mii_capabilities &= ma->mii_capmask; 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 |