aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/fxp
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2014-06-02 17:54:39 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2014-06-02 17:54:39 +0000
commit62d76917b86789a3c63ed7ccf4fe780e7b7cf284 (patch)
tree50b5505103db69da73caa7867a5a604a2f377b12 /sys/dev/fxp
parente74d21571fefda30855421694043041d1be24069 (diff)
Notes
Diffstat (limited to 'sys/dev/fxp')
-rw-r--r--sys/dev/fxp/inphy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/fxp/inphy.c b/sys/dev/fxp/inphy.c
index 07ed8caa5995..8a9a60c68069 100644
--- a/sys/dev/fxp/inphy.c
+++ b/sys/dev/fxp/inphy.c
@@ -122,7 +122,7 @@ inphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd)
/*
* If the interface is not up, don't do anything.
*/
- if ((mii->mii_ifp->if_flags & IFF_UP) == 0)
+ if ((if_getflags(mii->mii_ifp) & IFF_UP) == 0)
break;
mii_phy_setmedia(sc);