]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
netdev: bfin_mac: Remove is_multicast_ether_addr use in netdev_for_each_mc_addr
authorJoe Perches <joe@perches.com>
Wed, 12 Jan 2011 18:08:04 +0000 (18:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Jan 2011 05:48:25 +0000 (21:48 -0800)
Remove code that has no effect.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bfin_mac.c

index fe75e7a9742e3c41ed22520a4771b64353b7d417..22abfb39d8131f4f9685fd4a914c0aa2873b525a 100644 (file)
@@ -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)