Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb31c4e0 authored by Tobias Klauser's avatar Tobias Klauser Committed by David S. Miller
Browse files

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: default avatarTobias Klauser <tklauser@distanz.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3170ff54
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -964,13 +964,11 @@ static void veth_set_multicast_list(struct net_device *dev)
			u8 *addr = ha->addr;
			u64 xaddr = 0;

			if (addr[0] & 0x01) {/* multicast address? */
			memcpy(&xaddr, addr, ETH_ALEN);
			port->mcast_addr[port->num_mcast] = xaddr;
			port->num_mcast++;
		}
	}
	}

	write_unlock_irqrestore(&port->mcast_gate, flags);
}