Signed-off-by: Alexander Shiyan <[email protected]>
---
 drivers/gpio/gpio-pcf857x.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/drivers/gpio/gpio-pcf857x.c b/drivers/gpio/gpio-pcf857x.c
index fefd20de6f..612ef3a82e 100644
--- a/drivers/gpio/gpio-pcf857x.c
+++ b/drivers/gpio/gpio-pcf857x.c
@@ -219,11 +219,7 @@ static int pcf857x_probe(struct device_d *dev)
         */
        gpio->out = ~n_latch;
 
-       ret = gpiochip_add(&gpio->chip);
-       if (ret)
-               return ret;
-
-       return ret;
+       return gpiochip_add(&gpio->chip);
 }
 
 static const struct of_device_id pcf857x_dt_ids[] = {
-- 
2.32.0


Reply via email to