diff options
Diffstat (limited to 'drivers/net/atp.c')
-rw-r--r-- | drivers/net/atp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/atp.c b/drivers/net/atp.c index a841feb5df20..6ad16205dc17 100644 --- a/drivers/net/atp.c +++ b/drivers/net/atp.c | |||
@@ -886,9 +886,7 @@ static void set_rx_mode_8012(struct net_device *dev) | |||
886 | struct dev_mc_list *mclist; | 886 | struct dev_mc_list *mclist; |
887 | 887 | ||
888 | memset(mc_filter, 0, sizeof(mc_filter)); | 888 | memset(mc_filter, 0, sizeof(mc_filter)); |
889 | for (i = 0, mclist = dev->mc_list; mclist && i < netdev_mc_count(dev); | 889 | netdev_for_each_mc_addr(mclist, dev) { |
890 | i++, mclist = mclist->next) | ||
891 | { | ||
892 | int filterbit = ether_crc_le(ETH_ALEN, mclist->dmi_addr) & 0x3f; | 890 | int filterbit = ether_crc_le(ETH_ALEN, mclist->dmi_addr) & 0x3f; |
893 | mc_filter[filterbit >> 5] |= 1 << (filterbit & 31); | 891 | mc_filter[filterbit >> 5] |= 1 << (filterbit & 31); |
894 | } | 892 | } |