net: convert multiple drivers to use netdev_for_each_mc_addr, part5 V2
removed some needless checks and also corrected bug in lp486e (dmi was passed instead of dmi->dmi_addr) Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
52c793f240
commit
f9dcbcc9e3
@@ -580,7 +580,7 @@ void gelic_net_set_multi(struct net_device *netdev)
|
||||
}
|
||||
|
||||
/* set multicast addresses */
|
||||
for (mc = netdev->mc_list; mc; mc = mc->next) {
|
||||
netdev_for_each_mc_addr(mc, netdev) {
|
||||
addr = 0;
|
||||
p = mc->dmi_addr;
|
||||
for (i = 0; i < ETH_ALEN; i++) {
|
||||
|
Reference in New Issue
Block a user