aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/epic100.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/epic100.c')
-rw-r--r--drivers/net/epic100.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/epic100.c b/drivers/net/epic100.c
index 7a567201e829..8b5a203d3aa2 100644
--- a/drivers/net/epic100.c
+++ b/drivers/net/epic100.c
@@ -1399,12 +1399,12 @@ static void set_rx_mode(struct net_device *dev)
1399 outl(0x0004, ioaddr + RxCtrl); 1399 outl(0x0004, ioaddr + RxCtrl);
1400 return; 1400 return;
1401 } else { /* Never executed, for now. */ 1401 } else { /* Never executed, for now. */
1402 struct dev_mc_list *mclist; 1402 struct netdev_hw_addr *ha;
1403 1403
1404 memset(mc_filter, 0, sizeof(mc_filter)); 1404 memset(mc_filter, 0, sizeof(mc_filter));
1405 netdev_for_each_mc_addr(mclist, dev) { 1405 netdev_for_each_mc_addr(ha, dev) {
1406 unsigned int bit_nr = 1406 unsigned int bit_nr =
1407 ether_crc_le(ETH_ALEN, mclist->dmi_addr) & 0x3f; 1407 ether_crc_le(ETH_ALEN, ha->addr) & 0x3f;
1408 mc_filter[bit_nr >> 3] |= (1 << bit_nr); 1408 mc_filter[bit_nr >> 3] |= (1 << bit_nr);
1409 } 1409 }
1410 } 1410 }