net: iseries_veth: Omit check for multicast bit in netdev_for_each_mc_addr
authorTobias Klauser <tklauser@distanz.ch>
Wed, 29 Jun 2011 02:15:35 +0000 (02:15 +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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/iseries_veth.c

index b6c296f4b4d543de8dcfd555aeb820f711d4eac5..242bf524273efafcf635293d8c4fd1c39090f98c 100644 (file)
@@ -964,11 +964,9 @@ static void veth_set_multicast_list(struct net_device *dev)
                        u8 *addr = ha->addr;
                        u64 xaddr = 0;
 
-                       if (addr[0] & 0x01) {/* multicast address? */
-                               memcpy(&xaddr, addr, ETH_ALEN);
-                               port->mcast_addr[port->num_mcast] = xaddr;
-                               port->num_mcast++;
-                       }
+                       memcpy(&xaddr, addr, ETH_ALEN);
+                       port->mcast_addr[port->num_mcast] = xaddr;
+                       port->num_mcast++;
                }
        }