diff options
author | Joe Perches <joe@perches.com> | 2015-03-03 04:54:57 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-03 23:01:38 +0100 |
commit | c84a67a2fc70841e642fe2f0429abb1d9b4d2167 (patch) | |
tree | 04f3c5240192fa2612c430f533a92b8a903c459b /net/mac80211/ibss.c | |
parent | ethernet: Use eth_<foo>_addr instead of memset (diff) | |
download | linux-c84a67a2fc70841e642fe2f0429abb1d9b4d2167.tar.xz linux-c84a67a2fc70841e642fe2f0429abb1d9b4d2167.zip |
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) ieee80211_ibss_disconnect(sdata); ifibss->ssid_len = 0; - memset(ifibss->bssid, 0, ETH_ALEN); + eth_zero_addr(ifibss->bssid); /* remove beacon */ kfree(sdata->u.ibss.ie); |