diff options
author | Jiri Pirko <jpirko@redhat.com> | 2010-02-22 04:22:26 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-22 18:45:52 -0500 |
commit | 48e2f183cb1709600012265a2e723f45a350d5fe (patch) | |
tree | 608368bda6f159342c307deca3b03998d25434c8 /drivers/net/ipg.c | |
parent | 7a81e9f3ca712db82344ea3ab2a5879241f59c48 (diff) |
net: convert multiple drivers to use netdev_for_each_mc_addr, part4
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ipg.c')
-rw-r--r-- | drivers/net/ipg.c | 3 |
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); |