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

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

net: am79c961a: 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>
Acked-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0311ee22
Loading
Loading
Loading
Loading
+6 −8
Original line number Diff line number Diff line
@@ -199,7 +199,6 @@ am79c961_ramtest(struct net_device *dev, unsigned int val)

static void am79c961_mc_hash(char *addr, u16 *hash)
{
	if (addr[0] & 0x01) {
	int idx, bit;
	u32 crc;

@@ -210,7 +209,6 @@ static void am79c961_mc_hash(char *addr, u16 *hash)

	hash[idx] |= 1 << bit;
}
}

static unsigned int am79c961_get_rx_mode(struct net_device *dev, u16 *hash)
{