diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2011-06-28 22:14:46 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-07-01 01:13:38 -0400 |
commit | bda7ed47937bd9ba8c10631ca884f7fefb162f4d (patch) | |
tree | be53ecc26ba2a3752fe5766f8792a6774923b834 | |
parent | 0311ee2262440b903a81fa38512d12bc2478e66f (diff) |
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>
-rw-r--r-- | drivers/net/arm/am79c961a.c | 14 |
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) | |||
199 | 199 | ||
200 | static void am79c961_mc_hash(char *addr, u16 *hash) | 200 | static void am79c961_mc_hash(char *addr, u16 *hash) |
201 | { | 201 | { |
202 | if (addr[0] & 0x01) { | 202 | int idx, bit; |
203 | int idx, bit; | 203 | u32 crc; |
204 | u32 crc; | ||
205 | 204 | ||
206 | crc = ether_crc_le(ETH_ALEN, addr); | 205 | crc = ether_crc_le(ETH_ALEN, addr); |
207 | 206 | ||
208 | idx = crc >> 30; | 207 | idx = crc >> 30; |
209 | bit = (crc >> 26) & 15; | 208 | bit = (crc >> 26) & 15; |
210 | 209 | ||
211 | hash[idx] |= 1 << bit; | 210 | hash[idx] |= 1 << bit; |
212 | } | ||
213 | } | 211 | } |
214 | 212 | ||
215 | static unsigned int am79c961_get_rx_mode(struct net_device *dev, u16 *hash) | 213 | static unsigned int am79c961_get_rx_mode(struct net_device *dev, u16 *hash) |