Commit 31a3f9da authored by Rickard Strandqvist's avatar Rickard Strandqvist Committed by Linus Walleij

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: default avatarRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent fe5e23d3
...@@ -70,7 +70,7 @@ static int ucb1400_gpio_probe(struct platform_device *dev) ...@@ -70,7 +70,7 @@ static int ucb1400_gpio_probe(struct platform_device *dev)
if (err) if (err)
goto err; goto err;
if (ucb && ucb->gpio_setup) if (ucb->gpio_setup)
err = ucb->gpio_setup(&dev->dev, ucb->gc.ngpio); err = ucb->gpio_setup(&dev->dev, ucb->gc.ngpio);
err: err:
......
Markdown is supported
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