]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit92cf521185fb88a475d270870f6cd627c8c2bb88
tree65cc53bbbb9a24144546bebb388b24322661ba06
parent4f74acc69df720bec0bf1239064290f8fcfdb723
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