aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2011-06-29 02:15:35 +0000
committerDavid S. Miller <davem@davemloft.net>2011-06-30 22:13:38 -0700
commiteb31c4e0b0d8d7f673f95644cbfd2993f1c36840 (patch)
tree7f68a01aee4b929e9ac0560dec53c368caab2fdc /drivers
parentnet: depca: Omit check for multicast bit in netdev_for_each_mc_addr (diff)
downloadlinux-dev-eb31c4e0b0d8d7f673f95644cbfd2993f1c36840.tar.xz
linux-dev-eb31c4e0b0d8d7f673f95644cbfd2993f1c36840.zip
net: iseries_veth: 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> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/iseries_veth.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/iseries_veth.c b/drivers/net/iseries_veth.c
index b6c296f4b4d5..242bf524273e 100644
--- a/drivers/net/iseries_veth.c
+++ b/drivers/net/iseries_veth.c
@@ -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++;
}
}