diff options
author | Sergio Paracuellos <sergio.paracuellos@gmail.com> | 2018-04-24 15:50:06 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-04-25 15:50:20 +0200 |
commit | be4e1341b799b847267674f7f4701c9b940584ce (patch) | |
tree | 33ce684a0635f7271747825472371f15304ebdb0 /drivers/staging/ks7010 | |
parent | f1e8524c98516641c759b47ac3b91162d0380d62 (diff) | |
download | linux-be4e1341b799b847267674f7f4701c9b940584ce.tar.bz2 |
staging: ks7010: use ether_addr_copy in hostif_sme_multicast_set
Use ether_addr_copy to copy ethernet addresses in function
hostif_sme_multicast_set instead of memcpy.
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ks7010')
-rw-r--r-- | drivers/staging/ks7010/ks_hostif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c index fb01594994f7..8476ec8e3091 100644 --- a/drivers/staging/ks7010/ks_hostif.c +++ b/drivers/staging/ks7010/ks_hostif.c @@ -1928,7 +1928,7 @@ void hostif_sme_multicast_set(struct ks_wlan_private *priv) if (priv->sme_i.sme_flag & SME_MULTICAST) { mc_count = netdev_mc_count(dev); netdev_for_each_mc_addr(ha, dev) { - memcpy(&set_address[i * ETH_ALEN], ha->addr, ETH_ALEN); + ether_addr_copy(&set_address[i * ETH_ALEN], ha->addr); i++; } priv->sme_i.sme_flag &= ~SME_MULTICAST; |