gpio: gpio-twl4030.c: Cleaning up null pointer checks that could never happen
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Thu, 26 Jun 2014 16:17:21 +0000 (18:17 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 9 Jul 2014 10:22:55 +0000 (12:22 +0200)
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>
drivers/gpio/gpio-twl4030.c

index 3ebb1a5ff22ecfefac4b680f91562cea7ccf3e77..826da37052d74813ecc28f46769034e5423fb25a 100644 (file)
@@ -554,7 +554,7 @@ no_irqs:
 
        platform_set_drvdata(pdev, priv);
 
-       if (pdata && pdata->setup) {
+       if (pdata->setup) {
                int status;
 
                status = pdata->setup(&pdev->dev, priv->gpio_chip.base,