Skip to content

Commit

Permalink
netdev: bfin_mac: Remove is_multicast_ether_addr use in netdev_for_ea…
Browse files Browse the repository at this point in the history
…ch_mc_addr

Remove code that has no effect.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Joe Perches authored and David S. Miller committed Jan 14, 2011
1 parent 78d0736 commit f767b6d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions drivers/net/bfin_mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f767b6d

Please sign in to comment.