summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_wx.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pci/if_wx.c')
-rw-r--r--sys/pci/if_wx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/pci/if_wx.c b/sys/pci/if_wx.c
index b1151e4..1316093 100644
--- a/sys/pci/if_wx.c
+++ b/sys/pci/if_wx.c
@@ -517,8 +517,8 @@ wx_mc_setup(sc)
return (wx_init(sc));
}
- for (ifma = ifp->if_multiaddrs.lh_first, sc->wx_nmca = 0;
- ifma != NULL; ifma = ifma->ifma_link.le_next) {
+ sc->wx_nmca = 0;
+ LIST_FOREACH(ifma, &ifp->if_multiaddrs, ifma_link) {
if (ifma->ifma_addr->sa_family != AF_LINK) {
continue;
}
OpenPOWER on IntegriCloud