Skip to content

Commit

Permalink
mac80211: use non-atomic bitmap operation for local variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Berg committed Oct 25, 2012
1 parent f87ad63 commit 5df4569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mac80211/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5df4569

Please sign in to comment.