Skip to content

Commit

Permalink
net: ucc_geth: Omit check for multicast bit in netdev_for_each_mc_addr
Browse files Browse the repository at this point in the history
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Tobias Klauser authored and David S. Miller committed Jul 1, 2011
1 parent eb31c4e commit 781b864
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/net/ucc_geth.c
Original file line number Diff line number Diff line change
Expand Up @@ -2030,11 +2030,6 @@ static void ucc_geth_set_multi(struct net_device *dev)
out_be32(&p_82xx_addr_filt->gaddr_l, 0x0);

netdev_for_each_mc_addr(ha, dev) {
/* Only support group multicast for now.
*/
if (!is_multicast_ether_addr(ha->addr))
continue;

/* Ask CPM to run CRC and set bit in
* filter mask.
*/
Expand Down

0 comments on commit 781b864

Please sign in to comment.