aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ipg.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ipg.c')
-rw-r--r--drivers/net/ipg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ipg.c b/drivers/net/ipg.c
index 3ca49e348c9d..150415e83f61 100644
--- a/drivers/net/ipg.c
+++ b/drivers/net/ipg.c
@@ -608,8 +608,7 @@ static void ipg_nic_set_multicast_list(struct net_device *dev)
608 hashtable[1] = 0x00000000; 608 hashtable[1] = 0x00000000;
609 609
610 /* Cycle through all multicast addresses to filter. */ 610 /* Cycle through all multicast addresses to filter. */
611 for (mc_list_ptr = dev->mc_list; 611 netdev_for_each_mc_addr(mc_list_ptr, dev) {
612 mc_list_ptr != NULL; mc_list_ptr = mc_list_ptr->next) {
613 /* Calculate CRC result for each multicast address. */ 612 /* Calculate CRC result for each multicast address. */
614 hashindex = crc32_le(0xffffffff, mc_list_ptr->dmi_addr, 613 hashindex = crc32_le(0xffffffff, mc_list_ptr->dmi_addr,
615 ETH_ALEN); 614 ETH_ALEN);