summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_lge.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/if_lge.c')
-rw-r--r--sys/dev/pci/if_lge.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/pci/if_lge.c b/sys/dev/pci/if_lge.c
index 506e460df6c..9b0c7142aeb 100644
--- a/sys/dev/pci/if_lge.c
+++ b/sys/dev/pci/if_lge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_lge.c,v 1.44 2006/05/28 00:20:21 brad Exp $ */
+/* $OpenBSD: if_lge.c,v 1.45 2006/10/25 02:37:50 brad Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
* Copyright (c) 1997, 1998, 1999, 2000, 2001
@@ -1345,9 +1345,8 @@ lge_ifmedia_upd(struct ifnet *ifp)
sc->lge_link = 0;
if (mii->mii_instance) {
- struct mii_softc *miisc;
- for (miisc = LIST_FIRST(&mii->mii_phys); miisc != NULL;
- miisc = LIST_NEXT(miisc, mii_list))
+ struct mii_softc *miisc;
+ LIST_FOREACH(miisc, &mii->mii_phys, mii_list)
mii_phy_reset(miisc);
}
mii_mediachg(mii);