]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: wfx: simplify handling of tx_lock in wfx_do_join()
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Tue, 17 Dec 2019 16:15:08 +0000 (16:15 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Dec 2019 14:56:11 +0000 (15:56 +0100)
commit536607c0c793540ee53b2242d4f676e0898f9e93
tree062ed8b4e3991601d02dddc806da5c9099ec15cc
parent07c11c18ebb50c4f4b3fb5a40cbce212352b35bf
staging: wfx: simplify handling of tx_lock in wfx_do_join()

In the old days, wfx_do_join() could be called from different contexts.
Now that wfx_do_join() is called only from one place, it is cleaner to
keep lock and unlock of data inside the function.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20191217161318.31402-30-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/sta.c