summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_aue.c
diff options
context:
space:
mode:
authorKevin Lo <kevlo@cvs.openbsd.org>2018-07-03 14:33:44 +0000
committerKevin Lo <kevlo@cvs.openbsd.org>2018-07-03 14:33:44 +0000
commita7eb284df716f5332d0fc651c6ce93a8e5fbdee8 (patch)
treec9f5d32d7eb2c5b5e040b6eda36ee9ed898939f0 /sys/dev/usb/if_aue.c
parent4551ca08476589f51b2ba98d50f0996e2c32e93d (diff)
Use LIST_FOREACH construct instead of homebrew loop.
ok bluhm@, mpi@
Diffstat (limited to 'sys/dev/usb/if_aue.c')
-rw-r--r--sys/dev/usb/if_aue.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/usb/if_aue.c b/sys/dev/usb/if_aue.c
index e508a95dd8b..83c9043f305 100644
--- a/sys/dev/usb/if_aue.c
+++ b/sys/dev/usb/if_aue.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_aue.c,v 1.107 2018/07/03 00:49:14 kevlo Exp $ */
+/* $OpenBSD: if_aue.c,v 1.108 2018/07/03 14:33:43 kevlo Exp $ */
/* $NetBSD: if_aue.c,v 1.82 2003/03/05 17:37:36 shiba Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
@@ -1396,9 +1396,8 @@ aue_ifmedia_upd(struct ifnet *ifp)
sc->aue_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))
- mii_phy_reset(miisc);
+ LIST_FOREACH(miisc, &mii->mii_phys, mii_list)
+ mii_phy_reset(miisc);
}
mii_mediachg(mii);