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
@@ -568,9 +568,7 @@ static void set_multicast_list(struct net_device *dev)
|
||||
if(dev->flags&IFF_PROMISC)
|
||||
{
|
||||
lp->rx_mode = RX_ALL_ACCEPT;
|
||||
}
|
||||
else if((dev->flags&IFF_ALLMULTI)||dev->mc_list)
|
||||
{
|
||||
} else if ((dev->flags & IFF_ALLMULTI) || !netdev_mc_empty(dev)) {
|
||||
/* The multicast-accept list is initialized to accept-all, and we
|
||||
rely on higher-level filtering for now. */
|
||||
lp->rx_mode = RX_MULTCAST_ACCEPT;
|
||||
|
Reference in New Issue
Block a user