summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_bge.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/if_bge.c')
-rw-r--r--sys/dev/pci/if_bge.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c
index 3f186c2b100..41f71b66269 100644
--- a/sys/dev/pci/if_bge.c
+++ b/sys/dev/pci/if_bge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bge.c,v 1.191 2006/10/22 21:45:36 brad Exp $ */
+/* $OpenBSD: if_bge.c,v 1.192 2006/10/25 02:37:50 brad Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
@@ -3006,8 +3006,7 @@ bge_ifmedia_upd(struct ifnet *ifp)
sc->bge_link_evt++;
if (mii->mii_instance) {
struct mii_softc *miisc;
- for (miisc = LIST_FIRST(&mii->mii_phys); miisc != NULL;
- miisc = LIST_NEXT(miisc, mii_list))
+ LIST_FOREACH(miisc, &mii->mii_phys, mii_list)
mii_phy_reset(miisc);
}
mii_mediachg(mii);