diff options
author | Brian Norris | 2017-05-01 21:36:59 +0200 |
---|---|---|
committer | Kalle Valo | 2017-05-18 15:39:36 +0200 |
commit | 21f569af9ab3608382482166ae9aba802b097e3f (patch) | |
tree | 44297576b4af2fa52f4507eb1291a4c98cb410de /net | |
parent | mwifiex: p2p client using same data path as station (diff) | |
download | kernel-qcow2-linux-21f569af9ab3608382482166ae9aba802b097e3f.tar.gz kernel-qcow2-linux-21f569af9ab3608382482166ae9aba802b097e3f.tar.xz kernel-qcow2-linux-21f569af9ab3608382482166ae9aba802b097e3f.zip |
mwifiex: initiate card-specific work atomically
The non-atomic test + set is a little awkward here, and it technically
means we might double-schedule work unnecessarily. AFAICT, this is not
really a problem, since the extra "work" will be a no-op (the flag(s)
will be cleared by then), but it's still an anti-pattern.
Rewrite this to use the atomic test_and_set_bit() helper instead.
Signed-off-by: Brian Norris <briannorris@chromium.org>
Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions