diff options
author | Martin Reindl <martin@cvs.openbsd.org> | 2006-08-22 19:11:47 +0000 |
---|---|---|
committer | Martin Reindl <martin@cvs.openbsd.org> | 2006-08-22 19:11:47 +0000 |
commit | 7d391faac60ab1d5c9739e96a6e932c1481d8472 (patch) | |
tree | c203dbc56586e15bfa5fcc4dc4b8cc3d4f4f3977 /sys | |
parent | 7de823e2314acd552b7e86db2b781dae4ecc9772 (diff) |
use LIST_FOREACH; from FreeBSD
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_sf.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pci/if_sf.c b/sys/dev/pci/if_sf.c index f1fcf90eec5..77cd73aebe7 100644 --- a/sys/dev/pci/if_sf.c +++ b/sys/dev/pci/if_sf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_sf.c,v 1.39 2006/07/20 11:23:49 martin Exp $ */ +/* $OpenBSD: if_sf.c,v 1.40 2006/08/22 19:11:46 martin Exp $ */ /* * Copyright (c) 1997, 1998, 1999 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. @@ -420,8 +420,7 @@ int sf_ifmedia_upd(ifp) sc->sf_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)) + LIST_FOREACH(miisc, &mii->mii_phys, mii_list) mii_phy_reset(miisc); } mii_mediachg(mii); |