From 709379c1aeaadc2770d45e2cb1bc6428c65f09d3 Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 4 Feb 2001 16:08:18 +0000 Subject: Another round of the FOREACH transmogriffer. Created with: sed(1) Reviewed by: md5(1) --- sys/pci/if_wb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/pci/if_wb.c') diff --git a/sys/pci/if_wb.c b/sys/pci/if_wb.c index 7f93cb0..67e0b57 100644 --- a/sys/pci/if_wb.c +++ b/sys/pci/if_wb.c @@ -741,8 +741,7 @@ static void wb_reset(sc) 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); } -- cgit v1.1