diff options
author | Jiri Pirko <jpirko@redhat.com> | 2010-02-19 19:13:58 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-22 18:45:51 -0500 |
commit | 0ddf477b8a9b02412a6cabd51c486998811c7dd1 (patch) | |
tree | df82cf6637248439897153aca2f8fa6216003b61 /drivers/net/bfin_mac.c | |
parent | 3b9a7728d878a3e7adc79fb89c3bb9ebc23760d7 (diff) |
net: convert multiple drivers to use netdev_for_each_mc_addr, part3
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
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)) |