aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bfin_mac.c
diff options
context:
space:
mode:
authorJiri Pirko <jpirko@redhat.com>2010-02-19 19:13:58 -0500
committerDavid S. Miller <davem@davemloft.net>2010-02-22 18:45:51 -0500
commit0ddf477b8a9b02412a6cabd51c486998811c7dd1 (patch)
treedf82cf6637248439897153aca2f8fa6216003b61 /drivers/net/bfin_mac.c
parent3b9a7728d878a3e7adc79fb89c3bb9ebc23760d7 (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.c6
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)
812static void bfin_mac_multicast_hash(struct net_device *dev) 812static 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))