diff options
Diffstat (limited to 'drivers/net/mace.c')
-rw-r--r-- | drivers/net/mace.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/mace.c b/drivers/net/mace.c index 962c41d0c8df..b6855a6476f8 100644 --- a/drivers/net/mace.c +++ b/drivers/net/mace.c | |||
@@ -599,7 +599,7 @@ static void mace_set_multicast(struct net_device *dev) | |||
599 | mp->maccc |= PROM; | 599 | mp->maccc |= PROM; |
600 | } else { | 600 | } else { |
601 | unsigned char multicast_filter[8]; | 601 | unsigned char multicast_filter[8]; |
602 | struct dev_mc_list *dmi; | 602 | struct netdev_hw_addr *ha; |
603 | 603 | ||
604 | if (dev->flags & IFF_ALLMULTI) { | 604 | if (dev->flags & IFF_ALLMULTI) { |
605 | for (i = 0; i < 8; i++) | 605 | for (i = 0; i < 8; i++) |
@@ -607,8 +607,8 @@ static void mace_set_multicast(struct net_device *dev) | |||
607 | } else { | 607 | } else { |
608 | for (i = 0; i < 8; i++) | 608 | for (i = 0; i < 8; i++) |
609 | multicast_filter[i] = 0; | 609 | multicast_filter[i] = 0; |
610 | netdev_for_each_mc_addr(dmi, dev) { | 610 | netdev_for_each_mc_addr(ha, dev) { |
611 | crc = ether_crc_le(6, dmi->dmi_addr); | 611 | crc = ether_crc_le(6, ha->addr); |
612 | i = crc >> 26; /* bit number in multicast_filter */ | 612 | i = crc >> 26; /* bit number in multicast_filter */ |
613 | multicast_filter[i >> 3] |= 1 << (i & 7); | 613 | multicast_filter[i >> 3] |= 1 << (i & 7); |
614 | } | 614 | } |