wireless: Use eth_<foo>_addr instead of memset

Use the built-in function instead of memset.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Joe Perches
2015-03-02 19:54:58 -08:00
committed by David S. Miller
parent c84a67a2fc
commit d2beae1078
4 changed files with 9 additions and 8 deletions

View File

@@ -322,7 +322,7 @@ int cfg80211_mgd_wext_giwap(struct net_device *dev,
if (wdev->current_bss)
memcpy(ap_addr->sa_data, wdev->current_bss->pub.bssid, ETH_ALEN);
else
memset(ap_addr->sa_data, 0, ETH_ALEN);
eth_zero_addr(ap_addr->sa_data);
wdev_unlock(wdev);
return 0;