diff options
author | Joe Perches <joe@perches.com> | 2015-03-02 22:54:58 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-03 17:01:38 -0500 |
commit | d2beae1078a236d503b6e010fc4d65bb2e14dbdc (patch) | |
tree | 659bf9e8f4319f1c626fee9bb07f6ea366e42ff0 /net/wireless/ibss.c | |
parent | c84a67a2fc70841e642fe2f0429abb1d9b4d2167 (diff) |
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/ibss.c')
-rw-r--r-- | net/wireless/ibss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/ibss.c b/net/wireless/ibss.c index e24fc585c883..6309b9c0bcd5 100644 --- a/net/wireless/ibss.c +++ b/net/wireless/ibss.c | |||
@@ -533,7 +533,7 @@ int cfg80211_ibss_wext_giwap(struct net_device *dev, | |||
533 | else if (wdev->wext.ibss.bssid) | 533 | else if (wdev->wext.ibss.bssid) |
534 | memcpy(ap_addr->sa_data, wdev->wext.ibss.bssid, ETH_ALEN); | 534 | memcpy(ap_addr->sa_data, wdev->wext.ibss.bssid, ETH_ALEN); |
535 | else | 535 | else |
536 | memset(ap_addr->sa_data, 0, ETH_ALEN); | 536 | eth_zero_addr(ap_addr->sa_data); |
537 | 537 | ||
538 | wdev_unlock(wdev); | 538 | wdev_unlock(wdev); |
539 | 539 | ||