diff options
author | Joe Perches <joe@perches.com> | 2015-03-02 22:54:57 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-03 17:01:38 -0500 |
commit | c84a67a2fc70841e642fe2f0429abb1d9b4d2167 (patch) | |
tree | 04f3c5240192fa2612c430f533a92b8a903c459b /net/mac80211/ibss.c | |
parent | afc130dd3902942c3cae55512b120b7e1df29239 (diff) |
mac80211: 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/mac80211/ibss.c')
-rw-r--r-- | net/mac80211/ibss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c index b606b53a49a7..f9b07588baf5 100644 --- a/net/mac80211/ibss.c +++ b/net/mac80211/ibss.c | |||
@@ -1742,7 +1742,7 @@ int ieee80211_ibss_leave(struct ieee80211_sub_if_data *sdata) | |||
1742 | 1742 | ||
1743 | ieee80211_ibss_disconnect(sdata); | 1743 | ieee80211_ibss_disconnect(sdata); |
1744 | ifibss->ssid_len = 0; | 1744 | ifibss->ssid_len = 0; |
1745 | memset(ifibss->bssid, 0, ETH_ALEN); | 1745 | eth_zero_addr(ifibss->bssid); |
1746 | 1746 | ||
1747 | /* remove beacon */ | 1747 | /* remove beacon */ |
1748 | kfree(sdata->u.ibss.ie); | 1748 | kfree(sdata->u.ibss.ie); |