Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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: