net: am79c961a: Omit check for multicast bit in netdev_for_each_mc_addr
authorTobias Klauser <tklauser@distanz.ch>
Wed, 29 Jun 2011 02:14:46 +0000 (02:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Jul 2011 05:13:38 +0000 (22:13 -0700)
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: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/arm/am79c961a.c

index 7b3e23f38913657896b833a73d7c679b1723558a..52fe21e1e2cd11b20f50d3c59c7672818ac485bc 100644 (file)
@@ -199,17 +199,15 @@ 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;
+       int idx, bit;
+       u32 crc;
 
-               crc = ether_crc_le(ETH_ALEN, addr);
+       crc = ether_crc_le(ETH_ALEN, addr);
 
-               idx = crc >> 30;
-               bit = (crc >> 26) & 15;
+       idx = crc >> 30;
+       bit = (crc >> 26) & 15;
 
-               hash[idx] |= 1 << bit;
-       }
+       hash[idx] |= 1 << bit;
 }
 
 static unsigned int am79c961_get_rx_mode(struct net_device *dev, u16 *hash)