gpio: remove all usage of gpio_remove retval in driver/gpio
[linux-2.6-microblaze.git] / drivers / gpio / gpio-twl4030.c
index 3ebb1a5..118828b 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,
@@ -583,9 +583,7 @@ static int gpio_twl4030_remove(struct platform_device *pdev)
                }
        }
 
-       status = gpiochip_remove(&priv->gpio_chip);
-       if (status < 0)
-               return status;
+       gpiochip_remove(&priv->gpio_chip);
 
        if (is_module())
                return 0;