summaryrefslogtreecommitdiff
path: root/net/mac80211/util.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-10-24 14:22:37 +0200
committerJohannes Berg <johannes.berg@intel.com>2012-10-25 13:54:09 +0200
commit5df45690e78fd6355b3eb17ba15a1659e608db5d (patch)
tree995993d95d10ca6e527069f9dd74f58b0dac4746 /net/mac80211/util.c
parentf87ad637b60a3b789030b3ef969d56a8caec9fed (diff)
mac80211: use non-atomic bitmap operation for local variable
For a local variable there's no need to use the atomic set_bit() operation, use __set_bit() instead. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/util.c')
-rw-r--r--net/mac80211/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 51a4a2516233..ea8a6744a9db 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -821,7 +821,7 @@ u32 ieee802_11_parse_elems_crc(u8 *start, size_t len,
if (elem_parse_failed)
elems->parse_error = true;
else
- set_bit(id, seen_elems);
+ __set_bit(id, seen_elems);
left -= elen;
pos += elen;