summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAlexander Shiyan <eagle.alexander923@gmail.com>2022-06-29 09:30:23 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2022-06-30 20:55:13 +0200
commit2518ea994f3c085c02b26d42264d8007e0985ab0 (patch)
tree9bb0c32d2519f1d76998cd1f450e2e01c95c8f2b /drivers
parent729def2a8e33bd56bd110966795f8fbdfaf32a1d (diff)
downloadbarebox-2518ea994f3c085c02b26d42264d8007e0985ab0.tar.gz
barebox-2518ea994f3c085c02b26d42264d8007e0985ab0.tar.xz
drivers: gpio: pcf857x: Remove redundant assignment
Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com> Link: https://lore.barebox.org/20220629063024.3945-5-eagle.alexander923@gmail.com Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpio/gpio-pcf857x.c6
1 files changed, 1 insertions, 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[] = {