summaryrefslogtreecommitdiffstats
path: root/net/wireless/nl80211.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2015-03-02 19:54:58 -0800
committerDavid S. Miller <davem@davemloft.net>2015-03-03 17:01:38 -0500
commitd2beae1078a236d503b6e010fc4d65bb2e14dbdc (patch)
tree659bf9e8f4319f1c626fee9bb07f6ea366e42ff0 /net/wireless/nl80211.c
parentc84a67a2fc70841e642fe2f0429abb1d9b4d2167 (diff)
downloadop-kernel-dev-d2beae1078a236d503b6e010fc4d65bb2e14dbdc.zip
op-kernel-dev-d2beae1078a236d503b6e010fc4d65bb2e14dbdc.tar.gz
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/nl80211.c')
-rw-r--r--net/wireless/nl80211.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index d78fd8b..96fe328 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -5683,8 +5683,8 @@ static int nl80211_parse_random_mac(struct nlattr **attrs,
int i;
if (!attrs[NL80211_ATTR_MAC] && !attrs[NL80211_ATTR_MAC_MASK]) {
- memset(mac_addr, 0, ETH_ALEN);
- memset(mac_addr_mask, 0, ETH_ALEN);
+ eth_zero_addr(mac_addr);
+ eth_zero_addr(mac_addr_mask);
mac_addr[0] = 0x2;
mac_addr_mask[0] = 0x3;
OpenPOWER on IntegriCloud