pinctrl: Delete unnecessary checks
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 5 Nov 2015 16:10:22 +0000 (17:10 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 17 Nov 2015 10:49:50 +0000 (11:49 +0100)
commitf10a2585811ebd503ddf8ebcc9a32166c7b4b05f
tree4d6aa9479915881bb5d4aba32d2636477f710fd7
parent8005c49d9aea74d382f474ce11afbbc7d7130bec
pinctrl: Delete unnecessary checks

The pinctrl_unregister() function tests whether its argument is NULL
and then returns immediately. Thus the test around the call is not needed.

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/bcm/pinctrl-cygnus-gpio.c
drivers/pinctrl/pinctrl-single.c