From: Johannes Berg Date: Wed, 24 Oct 2012 12:22:37 +0000 (+0200) Subject: mac80211: use non-atomic bitmap operation for local variable X-Git-Tag: MMI-PSA29.97-13-9~15401^2~17^2^2~105 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5df45690e78fd6355b3eb17ba15a1659e608db5d;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 --- 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;