diff options
Diffstat (limited to 'sys/pci/if_ti.c')
-rw-r--r-- | sys/pci/if_ti.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/pci/if_ti.c b/sys/pci/if_ti.c index 9b29e09..cb28d01 100644 --- a/sys/pci/if_ti.c +++ b/sys/pci/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); |