]> Pileus Git - ~andy/linux/blobdiff - drivers/net/sunbmac.c
drivers/net: Omit check for multicast bit in netdev_for_each_mc_addr
[~andy/linux] / drivers / net / sunbmac.c
index aa4765803a4c4c9750fa7e24b9404dc1af61559e..297a4242106b300b48fcbbccbe142dde7f353df9 100644 (file)
@@ -998,7 +998,6 @@ static void bigmac_set_multicast(struct net_device *dev)
        struct bigmac *bp = netdev_priv(dev);
        void __iomem *bregs = bp->bregs;
        struct netdev_hw_addr *ha;
-       char *addrs;
        int i;
        u32 tmp, crc;
 
@@ -1027,12 +1026,7 @@ static void bigmac_set_multicast(struct net_device *dev)
                        hash_table[i] = 0;
 
                netdev_for_each_mc_addr(ha, dev) {
-                       addrs = ha->addr;
-
-                       if (!(*addrs & 1))
-                               continue;
-
-                       crc = ether_crc_le(6, addrs);
+                       crc = ether_crc_le(6, ha->addr);
                        crc >>= 26;
                        hash_table[crc >> 4] |= 1 << (crc & 0xf);
                }