diff options
author | Jiri Pirko <jpirko@redhat.com> | 2010-02-18 05:02:26 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-18 23:47:50 +0100 |
commit | a92635dc77b14f0f28d45c0fbf91b5064d9d7617 (patch) | |
tree | efc3a7a9a4b559614e56339aaa26171495bfb0c9 /drivers/net/usb/catc.c | |
parent | tulip: convert to use netdev_for_each_mc_addr (diff) | |
download | linux-a92635dc77b14f0f28d45c0fbf91b5064d9d7617.tar.xz linux-a92635dc77b14f0f28d45c0fbf91b5064d9d7617.zip |
net/usb: convert to use netdev_for_each_mc_addr
also removed needless checks in smsc95xx
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/catc.c')
-rw-r--r-- | drivers/net/usb/catc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/usb/catc.c b/drivers/net/usb/catc.c index 5a13660ebd17..96f1ebe0d348 100644 --- a/drivers/net/usb/catc.c +++ b/drivers/net/usb/catc.c @@ -632,7 +632,6 @@ static void catc_set_multicast_list(struct net_device *netdev) struct dev_mc_list *mc; u8 broadcast[6]; u8 rx = RxEnable | RxPolarity | RxMultiCast; - int i; memset(broadcast, 0xff, 6); memset(catc->multicast, 0, 64); @@ -648,9 +647,7 @@ static void catc_set_multicast_list(struct net_device *netdev) if (netdev->flags & IFF_ALLMULTI) { memset(catc->multicast, 0xff, 64); } else { - for (i = 0, mc = netdev->mc_list; - mc && i < netdev_mc_count(netdev); - i++, mc = mc->next) { + netdev_for_each_mc_addr(mc, netdev) { u32 crc = ether_crc_le(6, mc->dmi_addr); if (!catc->is_f5u011) { catc->multicast[(crc >> 3) & 0x3f] |= 1 << (crc & 7); |