diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2011-07-07 18:06:26 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-07-08 12:03:20 -0400 |
commit | 498d8e236304a62a2774d7264bdff2c6e8102b5b (patch) | |
tree | c1c5fa5ddf09a76bf0787e09fdc71fb8d5561b1c /drivers/net/bmac.c | |
parent | 40f5d72a4fc098c47068e3888cfb055922f6519f (diff) |
drivers/net: 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. This patch covers all
remaining network drivers still containing such a check.
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bmac.c')
-rw-r--r-- | drivers/net/bmac.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/net/bmac.c b/drivers/net/bmac.c index d2e58e2bea78..45e45e8d3d66 100644 --- a/drivers/net/bmac.c +++ b/drivers/net/bmac.c | |||
@@ -1015,7 +1015,6 @@ static void bmac_set_multicast(struct net_device *dev) | |||
1015 | static void bmac_set_multicast(struct net_device *dev) | 1015 | static void bmac_set_multicast(struct net_device *dev) |
1016 | { | 1016 | { |
1017 | struct netdev_hw_addr *ha; | 1017 | struct netdev_hw_addr *ha; |
1018 | char *addrs; | ||
1019 | int i; | 1018 | int i; |
1020 | unsigned short rx_cfg; | 1019 | unsigned short rx_cfg; |
1021 | u32 crc; | 1020 | u32 crc; |
@@ -1039,12 +1038,7 @@ static void bmac_set_multicast(struct net_device *dev) | |||
1039 | for(i = 0; i < 4; i++) hash_table[i] = 0; | 1038 | for(i = 0; i < 4; i++) hash_table[i] = 0; |
1040 | 1039 | ||
1041 | netdev_for_each_mc_addr(ha, dev) { | 1040 | netdev_for_each_mc_addr(ha, dev) { |
1042 | addrs = ha->addr; | 1041 | crc = ether_crc_le(6, ha->addr); |
1043 | |||
1044 | if(!(*addrs & 1)) | ||
1045 | continue; | ||
1046 | |||
1047 | crc = ether_crc_le(6, addrs); | ||
1048 | crc >>= 26; | 1042 | crc >>= 26; |
1049 | hash_table[crc >> 4] |= 1 << (crc & 0xf); | 1043 | hash_table[crc >> 4] |= 1 << (crc & 0xf); |
1050 | } | 1044 | } |