[media] videodev2: Add V4L2_BUF_FLAG_LAST
[deliverable/linux.git] / drivers / gpio / gpio-74x164.c
index e4ae29824c328d7f717f6a908d9b2e21e7c2074f..e3d968f751f124e2eda733e2ee2a061fd08b1cbd 100644 (file)
@@ -167,13 +167,11 @@ exit_destroy:
 static int gen_74x164_remove(struct spi_device *spi)
 {
        struct gen_74x164_chip *chip = spi_get_drvdata(spi);
-       int ret;
 
-       ret = gpiochip_remove(&chip->gpio_chip);
-       if (!ret)
-               mutex_destroy(&chip->lock);
+       gpiochip_remove(&chip->gpio_chip);
+       mutex_destroy(&chip->lock);
 
-       return ret;
+       return 0;
 }
 
 static const struct of_device_id gen_74x164_dt_ids[] = {
This page took 0.032912 seconds and 5 git commands to generate.