diff options
Diffstat (limited to 'drivers/net/epic100.c')
-rw-r--r-- | drivers/net/epic100.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/epic100.c b/drivers/net/epic100.c index 31a3adb65566..39c271b6be44 100644 --- a/drivers/net/epic100.c +++ b/drivers/net/epic100.c | |||
@@ -1403,8 +1403,7 @@ static void set_rx_mode(struct net_device *dev) | |||
1403 | struct dev_mc_list *mclist; | 1403 | struct dev_mc_list *mclist; |
1404 | 1404 | ||
1405 | memset(mc_filter, 0, sizeof(mc_filter)); | 1405 | memset(mc_filter, 0, sizeof(mc_filter)); |
1406 | for (i = 0, mclist = dev->mc_list; mclist && i < netdev_mc_count(dev); | 1406 | netdev_for_each_mc_addr(mclist, dev) { |
1407 | i++, mclist = mclist->next) { | ||
1408 | unsigned int bit_nr = | 1407 | unsigned int bit_nr = |
1409 | ether_crc_le(ETH_ALEN, mclist->dmi_addr) & 0x3f; | 1408 | ether_crc_le(ETH_ALEN, mclist->dmi_addr) & 0x3f; |
1410 | mc_filter[bit_nr >> 3] |= (1 << bit_nr); | 1409 | mc_filter[bit_nr >> 3] |= (1 << bit_nr); |