pinctrl: mcp23s08: Improve unlocking of a mutex in mcp23s08_irq()
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 30 Oct 2017 15:03:12 +0000 (16:03 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 29 Nov 2017 12:51:10 +0000 (13:51 +0100)
commit7f6f50dfb51b141ed2de277d8239c52f15d9742b
tree4fbcf63fcb049ba4de71fa8a15363c80b71718e5
parentcb5fda413e1d4a857bf4fd0bc92e9de0f1ff9e9d
pinctrl: mcp23s08: Improve unlocking of a mutex in mcp23s08_irq()

* Add a jump target so that a call of the function "mutex_unlock" is stored
  only twice in this function implementation.

* Replace five calls by goto statements.

* Adjust five condition checks.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-mcp23s08.c