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_url.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_url.c')
-rw-r--r-- | sys/dev/usb/if_url.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/usb/if_url.c b/sys/dev/usb/if_url.c index 1158788930e..5438c41c540 100644 --- a/sys/dev/usb/if_url.c +++ b/sys/dev/usb/if_url.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_url.c,v 1.82 2017/01/22 10:17:39 dlg Exp $ */ +/* $OpenBSD: if_url.c,v 1.83 2018/07/03 14:33:43 kevlo Exp $ */ /* $NetBSD: if_url.c,v 1.6 2002/09/29 10:19:21 martin Exp $ */ /* * Copyright (c) 2001, 2002 @@ -1160,8 +1160,7 @@ url_ifmedia_change(struct ifnet *ifp) sc->sc_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); } |