forked from luck/tmp_suning_uos_patched
gpio: gpio-ucb1400.c: Cleaning up null pointer checks that could never happen
Removal of null pointer checks that could never happen This was found using a static code analysis program called cppcheck Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
fe5e23d3c9
commit
31a3f9da4e
|
@ -70,7 +70,7 @@ static int ucb1400_gpio_probe(struct platform_device *dev)
|
|||
if (err)
|
||||
goto err;
|
||||
|
||||
if (ucb && ucb->gpio_setup)
|
||||
if (ucb->gpio_setup)
|
||||
err = ucb->gpio_setup(&dev->dev, ucb->gc.ngpio);
|
||||
|
||||
err:
|
||||
|
|
Loading…
Reference in New Issue
Block a user