[PATCH 6/6] drivers: led: pca955x: Remove redundant assignment

Alexander Shiyan eagle.alexander923 at gmail.com
Tue Jun 28 23:30:24 PDT 2022


Signed-off-by: Alexander Shiyan <eagle.alexander923 at gmail.com>
---
 drivers/led/led-pca955x.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/led/led-pca955x.c b/drivers/led/led-pca955x.c
index 848feb9773..aa518fe738 100644
--- a/drivers/led/led-pca955x.c
+++ b/drivers/led/led-pca955x.c
@@ -387,11 +387,10 @@ static int led_pca955x_probe(struct device_d *dev)
 	err = pca955x_write_psc(client, 0, 0);
 	if (err)
 		return err;
+
 	err = pca955x_write_psc(client, 1, 0);
-	if (err)
-		return err;
 
-	return 0;
+	return err;
 }
 
 static struct driver_d led_pca955x_driver = {
-- 
2.32.0




More information about the barebox mailing list