diff options
Diffstat (limited to 'drivers/net/bfin_mac.c')
-rw-r--r-- | drivers/net/bfin_mac.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/bfin_mac.c b/drivers/net/bfin_mac.c index ef7f77113e26..587f93cf03f6 100644 --- a/drivers/net/bfin_mac.c +++ b/drivers/net/bfin_mac.c | |||
@@ -812,16 +812,14 @@ static void bfin_mac_timeout(struct net_device *dev) | |||
812 | static void bfin_mac_multicast_hash(struct net_device *dev) | 812 | static void bfin_mac_multicast_hash(struct net_device *dev) |
813 | { | 813 | { |
814 | u32 emac_hashhi, emac_hashlo; | 814 | u32 emac_hashhi, emac_hashlo; |
815 | struct dev_mc_list *dmi = dev->mc_list; | 815 | struct dev_mc_list *dmi; |
816 | char *addrs; | 816 | char *addrs; |
817 | int i; | ||
818 | u32 crc; | 817 | u32 crc; |
819 | 818 | ||
820 | emac_hashhi = emac_hashlo = 0; | 819 | emac_hashhi = emac_hashlo = 0; |
821 | 820 | ||
822 | for (i = 0; i < netdev_mc_count(dev); i++) { | 821 | netdev_for_each_mc_addr(dmi, dev) { |
823 | addrs = dmi->dmi_addr; | 822 | addrs = dmi->dmi_addr; |
824 | dmi = dmi->next; | ||
825 | 823 | ||
826 | /* skip non-multicast addresses */ | 824 | /* skip non-multicast addresses */ |
827 | if (!(*addrs & 1)) | 825 | if (!(*addrs & 1)) |