pinctrl: max77620: Use common error handling code in max77620_pinconf_set()
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 30 Oct 2017 13:55:52 +0000 (14:55 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 8 Nov 2017 12:49:57 +0000 (13:49 +0100)
commit752caf9aca6281a0e45825338ac12f54fbc23190
treed0eac79dcec3c436722ca999a8adb95c44c5c1a8
parent60ad481f74a6d5ffb38e2c2ea325324e82081e7e
pinctrl: max77620: Use common error handling code in max77620_pinconf_set()

* Add a jump target so that a specific error message is stored only once
  at the end of this function implementation.

* Replace two calls of the function "dev_err" by goto statements.

* Adjust two 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-max77620.c