mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-03 07:41:40 +00:00
net: iseries_veth: Omit check for multicast bit in netdev_for_each_mc_addr
There is no need to check for the address being a multicast address in the netdev_for_each_mc_addr loop, so remove it. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3170ff54c2
commit
eb31c4e0b0
@ -964,11 +964,9 @@ static void veth_set_multicast_list(struct net_device *dev)
|
|||||||
u8 *addr = ha->addr;
|
u8 *addr = ha->addr;
|
||||||
u64 xaddr = 0;
|
u64 xaddr = 0;
|
||||||
|
|
||||||
if (addr[0] & 0x01) {/* multicast address? */
|
memcpy(&xaddr, addr, ETH_ALEN);
|
||||||
memcpy(&xaddr, addr, ETH_ALEN);
|
port->mcast_addr[port->num_mcast] = xaddr;
|
||||||
port->mcast_addr[port->num_mcast] = xaddr;
|
port->num_mcast++;
|
||||||
port->num_mcast++;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user