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

Commit f767b6df authored by Joe Perches's avatar Joe Perches Committed by David S. Miller
Browse files

netdev: bfin_mac: Remove is_multicast_ether_addr use in netdev_for_each_mc_addr



Remove code that has no effect.

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 78d07369
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -1284,19 +1284,12 @@ static void bfin_mac_multicast_hash(struct net_device *dev)
{
	u32 emac_hashhi, emac_hashlo;
	struct netdev_hw_addr *ha;
	char *addrs;
	u32 crc;

	emac_hashhi = emac_hashlo = 0;

	netdev_for_each_mc_addr(ha, dev) {
		addrs = ha->addr;

		/* skip non-multicast addresses */
		if (!is_multicast_ether_addr(addrs))
			continue;

		crc = ether_crc(ETH_ALEN, addrs);
		crc = ether_crc(ETH_ALEN, ha->addr);
		crc >>= 26;

		if (crc & 0x20)