staging: ks7010: use ether_addr_copy in ks_wlan_get_wap

Use ether_addr_copy to copy ethernet addresses instead
of a custom memcpy. This improves readability.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Sergio Paracuellos 2018-04-25 16:01:50 +02:00 committed by Greg Kroah-Hartman
parent 90db591233
commit afa10db0e1

View File

@ -346,7 +346,7 @@ static int ks_wlan_get_wap(struct net_device *dev, struct iw_request_info *info,
/* for SLEEP MODE */ /* for SLEEP MODE */
if (is_connect_status(priv->connect_status)) if (is_connect_status(priv->connect_status))
memcpy(awrq->ap_addr.sa_data, priv->current_ap.bssid, ETH_ALEN); ether_addr_copy(awrq->ap_addr.sa_data, priv->current_ap.bssid);
else else
eth_zero_addr(awrq->ap_addr.sa_data); eth_zero_addr(awrq->ap_addr.sa_data);