summaryrefslogtreecommitdiffstats
path: root/sys/net/if_media.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2001-02-04 16:08:18 +0000
committerphk <phk@FreeBSD.org>2001-02-04 16:08:18 +0000
commit709379c1aeaadc2770d45e2cb1bc6428c65f09d3 (patch)
treedfeb80ff1352759a12e59878a24ad037eef63ea0 /sys/net/if_media.c
parente01468552648a6fc51185ba9e47435b0d00ff96f (diff)
downloadFreeBSD-src-709379c1aeaadc2770d45e2cb1bc6428c65f09d3.zip
FreeBSD-src-709379c1aeaadc2770d45e2cb1bc6428c65f09d3.tar.gz
Another round of the <sys/queue.h> FOREACH transmogriffer.
Created with: sed(1) Reviewed by: md5(1)
Diffstat (limited to 'sys/net/if_media.c')
-rw-r--r--sys/net/if_media.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/net/if_media.c b/sys/net/if_media.c
index 3759f03..d6f9d26 100644
--- a/sys/net/if_media.c
+++ b/sys/net/if_media.c
@@ -351,8 +351,7 @@ ifmedia_match(ifm, target, mask)
match = NULL;
mask = ~mask;
- for (next = LIST_FIRST(&ifm->ifm_list); next != NULL;
- next = LIST_NEXT(next, ifm_list)) {
+ LIST_FOREACH(next, &ifm->ifm_list, ifm_list) {
if ((next->ifm_media & mask) == (target & mask)) {
#if defined(IFMEDIA_DEBUG) || defined(DIAGNOSTIC)
if (match) {
OpenPOWER on IntegriCloud