aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/iseries_veth.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/iseries_veth.c')
-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)
964 u8 *addr = ha->addr; 964 u8 *addr = ha->addr;
965 u64 xaddr = 0; 965 u64 xaddr = 0;
966 966
967 if (addr[0] & 0x01) {/* multicast address? */ 967 memcpy(&xaddr, addr, ETH_ALEN);
968 memcpy(&xaddr, addr, ETH_ALEN); 968 port->mcast_addr[port->num_mcast] = xaddr;
969 port->mcast_addr[port->num_mcast] = xaddr; 969 port->num_mcast++;
970 port->num_mcast++;
971 }
972 } 970 }
973 } 971 }
974 972