aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sungem.c
diff options
context:
space:
mode:
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