summaryrefslogtreecommitdiff
path: root/drivers/net/arm/am79c961a.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2011-06-29 06:14:46 +0400
committerDavid S. Miller <davem@davemloft.net>2011-07-01 09:13:38 +0400
commitbda7ed47937bd9ba8c10631ca884f7fefb162f4d (patch)
treebe53ecc26ba2a3752fe5766f8792a6774923b834 /drivers/net/arm/am79c961a.c
parent0311ee2262440b903a81fa38512d12bc2478e66f (diff)
downloadlinux-bda7ed47937bd9ba8c10631ca884f7fefb162f4d.tar.xz
net: am79c961a: Omit check for multicast bit in netdev_for_each_mc_addr
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>
Diffstat (limited to 'drivers/net/arm/am79c961a.c')
-rw-r--r--drivers/net/arm/am79c961a.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/net/arm/am79c961a.c b/drivers/net/arm/am79c961a.c
index 7b3e23f38913..52fe21e1e2cd 100644
--- a/drivers/net/arm/am79c961a.c
+++ b/drivers/net/arm/am79c961a.c
@@ -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)