projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f87ad63
)
mac80211: use non-atomic bitmap operation for local variable
author
Johannes Berg
<johannes.berg@intel.com>
Wed, 24 Oct 2012 12:22:37 +0000
(14:22 +0200)
committer
Johannes Berg
<johannes.berg@intel.com>
Thu, 25 Oct 2012 11:54:09 +0000
(13:54 +0200)
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>
net/mac80211/util.c
patch
|
blob
|
blame
|
history
diff --git
a/net/mac80211/util.c
b/net/mac80211/util.c
index 51a4a251623387c5c43c7d353ab295c7927ba922..ea8a6744a9dbffeb9ac71307bab763d2d8eb4fbd 100644
(file)
--- 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;