summaryrefslogtreecommitdiffstats
path: root/net/wireless/wext-sme.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2015-03-03 04:54:58 +0100
committerDavid S. Miller <davem@davemloft.net>2015-03-03 23:01:38 +0100
commitd2beae1078a236d503b6e010fc4d65bb2e14dbdc (patch)
tree659bf9e8f4319f1c626fee9bb07f6ea366e42ff0 /net/wireless/wext-sme.c
parentmac80211: Use eth_<foo>_addr instead of memset (diff)
downloadlinux-d2beae1078a236d503b6e010fc4d65bb2e14dbdc.tar.xz
linux-d2beae1078a236d503b6e010fc4d65bb2e14dbdc.zip
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>
Diffstat (limited to 'net/wireless/wext-sme.c')
-rw-r--r--net/wireless/wext-sme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/wext-sme.c b/net/wireless/wext-sme.c
index 368611c05739..a4e8af3321d2 100644
--- a/net/wireless/wext-sme.c
+++ b/net/wireless/wext-sme.c
@@ -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;