staging: fsl-mc: get rid of mutex_locked variables
authorCihangir Akturk <cakturk@gmail.com>
Sat, 9 Apr 2016 18:45:18 +0000 (21:45 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Apr 2016 00:55:54 +0000 (17:55 -0700)
commit6ffdc7b95474d572f67b0c198cd7a08d8f5e5ff6
tree65cc53bbbb9a24144546bebb388b24322661ba06
parentc3f463484bdd0acd15abd5f92399041f79592d06
staging: fsl-mc: get rid of mutex_locked variables

Remove mutex_locked variables which are used to determine whether mutex is
locked, instead add another label to unlock mutex on premature exits due to
an error.

This patch also addresses the folowing warnings reported by coccinelle:

drivers/staging/fsl-mc/bus/mc-allocator.c:237:1-7: preceding lock on line 204
drivers/staging/fsl-mc/bus/mc-allocator.c:89:1-7: preceding lock on line 57
drivers/staging/fsl-mc/bus/mc-allocator.c:157:1-7: preceding lock on line 124

Signed-off-by: Cihangir Akturk <cakturk@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-mc/bus/mc-allocator.c