diff options
Diffstat (limited to 'drivers/net/atp.c')
-rw-r--r-- | drivers/net/atp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/atp.c b/drivers/net/atp.c index 6ad16205dc17..0d730c8329d4 100644 --- a/drivers/net/atp.c +++ b/drivers/net/atp.c | |||
@@ -883,11 +883,11 @@ static void set_rx_mode_8012(struct net_device *dev) | |||
883 | memset(mc_filter, 0xff, sizeof(mc_filter)); | 883 | memset(mc_filter, 0xff, sizeof(mc_filter)); |
884 | new_mode = CMR2h_Normal; | 884 | new_mode = CMR2h_Normal; |
885 | } else { | 885 | } else { |
886 | struct dev_mc_list *mclist; | 886 | struct netdev_hw_addr *ha; |
887 | 887 | ||
888 | memset(mc_filter, 0, sizeof(mc_filter)); | 888 | memset(mc_filter, 0, sizeof(mc_filter)); |
889 | netdev_for_each_mc_addr(mclist, dev) { | 889 | netdev_for_each_mc_addr(ha, dev) { |
890 | int filterbit = ether_crc_le(ETH_ALEN, mclist->dmi_addr) & 0x3f; | 890 | int filterbit = ether_crc_le(ETH_ALEN, ha->addr) & 0x3f; |
891 | mc_filter[filterbit >> 5] |= 1 << (filterbit & 31); | 891 | mc_filter[filterbit >> 5] |= 1 << (filterbit & 31); |
892 | } | 892 | } |
893 | new_mode = CMR2h_Normal; | 893 | new_mode = CMR2h_Normal; |