diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2001-02-20 19:15:20 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2001-02-20 19:15:20 +0000 |
commit | 538f9f995c2e33db913284c36581dd9e7c924f9c (patch) | |
tree | 689e6eb0b9f1aad4181018efb56dc52c2d6b14b3 /sys/dev | |
parent | e9cfef49114873860f569b9eee40db7dbd1116aa (diff) |
sync with freebsd:
use LIST_FOREACH construct instead of homebrew loop
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/if_sis.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/pci/if_sis.c b/sys/dev/pci/if_sis.c index 28d56fc43e8..f565377b23f 100644 --- a/sys/dev/pci/if_sis.c +++ b/sys/dev/pci/if_sis.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_sis.c,v 1.8 2000/12/06 15:48:28 mickey Exp $ */ +/* $OpenBSD: if_sis.c,v 1.9 2001/02/20 19:15:19 jason Exp $ */ /* * Copyright (c) 1997, 1998, 1999 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. @@ -30,7 +30,7 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. * - * $FreeBSD: src/sys/pci/if_sis.c,v 1.21 2000/08/22 23:26:51 wpaul Exp $ + * $FreeBSD: src/sys/pci/if_sis.c,v 1.30 2001/02/06 10:11:47 phk Exp $ */ /* @@ -1428,8 +1428,7 @@ int sis_ifmedia_upd(ifp) sc->sis_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); |