diff options
author | Jiri Pirko <jpirko@redhat.com> | 2010-02-19 19:13:58 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-22 18:45:51 -0500 |
commit | 0ddf477b8a9b02412a6cabd51c486998811c7dd1 (patch) | |
tree | df82cf6637248439897153aca2f8fa6216003b61 /drivers/net/bnx2.c | |
parent | 3b9a7728d878a3e7adc79fb89c3bb9ebc23760d7 (diff) |
net: convert multiple drivers to use netdev_for_each_mc_addr, part3
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2.c')
-rw-r--r-- | drivers/net/bnx2.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c index a6cc9d02e589..d3f739a295df 100644 --- a/drivers/net/bnx2.c +++ b/drivers/net/bnx2.c | |||
@@ -3552,9 +3552,7 @@ bnx2_set_rx_mode(struct net_device *dev) | |||
3552 | 3552 | ||
3553 | memset(mc_filter, 0, 4 * NUM_MC_HASH_REGISTERS); | 3553 | memset(mc_filter, 0, 4 * NUM_MC_HASH_REGISTERS); |
3554 | 3554 | ||
3555 | for (i = 0, mclist = dev->mc_list; mclist && i < netdev_mc_count(dev); | 3555 | netdev_for_each_mc_addr(mclist, dev) { |
3556 | i++, mclist = mclist->next) { | ||
3557 | |||
3558 | crc = ether_crc_le(ETH_ALEN, mclist->dmi_addr); | 3556 | crc = ether_crc_le(ETH_ALEN, mclist->dmi_addr); |
3559 | bit = crc & 0xff; | 3557 | bit = crc & 0xff; |
3560 | regidx = (bit & 0xe0) >> 5; | 3558 | regidx = (bit & 0xe0) >> 5; |