Skip to content
Commit 7f6f50df authored by Markus Elfring's avatar Markus Elfring Committed by Linus Walleij
Browse files

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent cb5fda41
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment