summaryrefslogtreecommitdiffstats
path: root/sys/dev/ti
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2001-02-03 16:29:10 +0000
committerphk <phk@FreeBSD.org>2001-02-03 16:29:10 +0000
commit408a00d7df90965db4085ccfd67356bf3f7c38ee (patch)
tree4ad9050dfc339204ebef2be568d2128e1bbf4da8 /sys/dev/ti
parent2ef21ddcb983700a744a68bdc09d4328d1af0d71 (diff)
downloadFreeBSD-src-408a00d7df90965db4085ccfd67356bf3f7c38ee.zip
FreeBSD-src-408a00d7df90965db4085ccfd67356bf3f7c38ee.tar.gz
Use LIST_FOREACH() to traverse ifp->if_multiaddrs list, instead of
<sys/queue.h> implementation details. Created with: /usr/sbin/sed Reviewed with: /sbin/md5
Diffstat (limited to 'sys/dev/ti')
-rw-r--r--sys/dev/ti/if_ti.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/ti/if_ti.c b/sys/dev/ti/if_ti.c
index 9b29e09..cb28d01 100644
--- a/sys/dev/ti/if_ti.c
+++ b/sys/dev/ti/if_ti.c
@@ -1081,8 +1081,7 @@ static void ti_setmulti(sc)
}
/* Now program new ones. */
- for (ifma = ifp->if_multiaddrs.lh_first;
- ifma != NULL; ifma = ifma->ifma_link.le_next) {
+ LIST_FOREACH(ifma, &ifp->if_multiaddrs, ifma_link) {
if (ifma->ifma_addr->sa_family != AF_LINK)
continue;
mc = malloc(sizeof(struct ti_mc_entry), M_DEVBUF, M_NOWAIT);
OpenPOWER on IntegriCloud