Tag: f10a2585811ebd503ddf8ebcc9a32166c7b4b05f

pinctrl: Delete unnecessary checks

Author: Markus Elfring <elfring@users.sourceforge.net> 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 Signed-off-by: Linus Walleij — drivers/pinctrl/bcm/pinctrl-cygnus-gpio.c | 3 +– drivers/pinctrl/pinctrl-single.c | 5 +—- 2 files changed, 2 insertions(+), …

Continue reading