diff options
author | 2018-07-03 14:33:43 +0000 | |
---|---|---|
committer | 2018-07-03 14:33:43 +0000 | |
commit | 92392ef7a8d0971d14f0d23f31eda0eca009ddc7 (patch) | |
tree | 280a8905d4c2c539f6006fb79a038ba2a9284b64 /sys/dev/usb/if_udav.c | |
parent | add a comment that could have saved me 45 minutes of wild goose chasing (diff) | |
download | wireguard-openbsd-92392ef7a8d0971d14f0d23f31eda0eca009ddc7.tar.xz wireguard-openbsd-92392ef7a8d0971d14f0d23f31eda0eca009ddc7.zip |
Use LIST_FOREACH construct instead of homebrew loop.
ok bluhm@, mpi@
Diffstat (limited to 'sys/dev/usb/if_udav.c')
-rw-r--r-- | sys/dev/usb/if_udav.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/usb/if_udav.c b/sys/dev/usb/if_udav.c index b68cf5c1cab..1ccab331e64 100644 --- a/sys/dev/usb/if_udav.c +++ b/sys/dev/usb/if_udav.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_udav.c,v 1.79 2017/01/22 10:17:39 dlg Exp $ */ +/* $OpenBSD: if_udav.c,v 1.80 2018/07/03 14:33:43 kevlo Exp $ */ /* $NetBSD: if_udav.c,v 1.3 2004/04/23 17:25:25 itojun Exp $ */ /* $nabe: if_udav.c,v 1.3 2003/08/21 16:57:19 nabe Exp $ */ /* @@ -1303,8 +1303,7 @@ udav_ifmedia_change(struct ifnet *ifp) 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); } |