aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sungem.c
diff options
context:
space:
mode:
authorJiri Pirko <jpirko@redhat.com>2010-02-17 19:42:54 -0500
committerDavid S. Miller <davem@davemloft.net>2010-02-18 17:47:49 -0500
commit5508590c193661bc1484ad7b952af5fceacea40d (patch)
tree8b7d1655f63034725127b9456afa5bad4bb6e83a /drivers/net/sungem.c
parent2a0d18f97cc15d57ad0c93259a3df4cb72c5a28b (diff)
net: convert multiple drivers to use netdev_for_each_mc_addr, part2
Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sungem.c')
-rw-r--r--drivers/net/sungem.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/net/sungem.c b/drivers/net/sungem.c
index d497ec05395..4344017bfae 100644
--- a/drivers/net/sungem.c
+++ b/drivers/net/sungem.c
@@ -1846,17 +1846,13 @@ static u32 gem_setup_multicast(struct gem *gp)
1846 } else { 1846 } else {
1847 u16 hash_table[16]; 1847 u16 hash_table[16];
1848 u32 crc; 1848 u32 crc;
1849 struct dev_mc_list *dmi = gp->dev->mc_list; 1849 struct dev_mc_list *dmi;
1850 int i; 1850 int i;
1851 1851
1852 for (i = 0; i < 16; i++) 1852 memset(hash_table, 0, sizeof(hash_table));
1853 hash_table[i] = 0; 1853 netdev_for_each_mc_addr(dmi, gp->dev) {
1854
1855 for (i = 0; i < netdev_mc_count(gp->dev); i++) {
1856 char *addrs = dmi->dmi_addr; 1854 char *addrs = dmi->dmi_addr;
1857 1855
1858 dmi = dmi->next;
1859
1860 if (!(*addrs & 1)) 1856 if (!(*addrs & 1))
1861 continue; 1857 continue;
1862 1858