Skip to content
Commit f0208b71 authored by Cathal Mullaney's avatar Cathal Mullaney Committed by Greg Kroah-Hartman
Browse files

staging: unisys: visorbus: visorchannel: Refactor locking code to be statically deterministic.



This patch makes locking in visorchannel_signalempty statically
deterministic.
As a result this patch fixes the sparse warning:
Context imbalance in 'visorchannel_signalempty' - different lock
contexts for basic block.

The logic of the locking code doesn't change but the layout of the
original code is "frowned upon"
according to mails on sparse context checking.
Refactoring removes the warning and makes the code more readable.

Signed-off-by: default avatarCathal Mullaney <chuckleberryfinn@gmail.com>
Tested-by: default avatarDavid Kershner <david.kershner@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e0e69648
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment