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

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

gpio: gpio-twl4030.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 246a144e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -554,7 +554,7 @@ static int gpio_twl4030_probe(struct platform_device *pdev)

	platform_set_drvdata(pdev, priv);

	if (pdata && pdata->setup) {
	if (pdata->setup) {
		int status;

		status = pdata->setup(&pdev->dev, priv->gpio_chip.base,