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.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/net/sungem.c b/drivers/net/sungem.c
index 71d4a0329d02..ade35dde5b51 100644
--- a/drivers/net/sungem.c
+++ b/drivers/net/sungem.c
@@ -1802,12 +1802,7 @@ static u32 gem_setup_multicast(struct gem *gp)
1802 1802
1803 memset(hash_table, 0, sizeof(hash_table)); 1803 memset(hash_table, 0, sizeof(hash_table));
1804 netdev_for_each_mc_addr(ha, gp->dev) { 1804 netdev_for_each_mc_addr(ha, gp->dev) {
1805 char *addrs = ha->addr; 1805 crc = ether_crc_le(6, ha->addr);
1806
1807 if (!(*addrs & 1))
1808 continue;
1809
1810 crc = ether_crc_le(6, addrs);
1811 crc >>= 24; 1806 crc >>= 24;
1812 hash_table[crc >> 4] |= 1 << (15 - (crc & 0xf)); 1807 hash_table[crc >> 4] |= 1 << (15 - (crc & 0xf));
1813 } 1808 }