public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] media: i2c: ds90ub960: Delete duplicate source code in ub960_parse_dt_rxports()
@ 2024-03-01  7:46 Markus Elfring
  2024-03-01  8:46 ` Sakari Ailus
  0 siblings, 1 reply; 7+ messages in thread
From: Markus Elfring @ 2024-03-01  7:46 UTC (permalink / raw)
  To: linux-media, kernel-janitors, Andy Shevchenko,
	Mauro Carvalho Chehab, Sakari Ailus, Tomi Valkeinen
  Cc: LKML

From: Markus Elfring <elfring@users.sourceforge.net>
Date: Fri, 1 Mar 2024 08:23:24 +0100

Avoid the specification of a duplicate fwnode_handle_put() call
in this function implementation.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
 drivers/media/i2c/ds90ub960.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/media/i2c/ds90ub960.c b/drivers/media/i2c/ds90ub960.c
index ffe5f25f8647..eb708ed7b56e 100644
--- a/drivers/media/i2c/ds90ub960.c
+++ b/drivers/media/i2c/ds90ub960.c
@@ -3486,10 +3486,7 @@ static int ub960_parse_dt_rxports(struct ub960_data *priv)
 		}
 	}

-	fwnode_handle_put(links_fwnode);
-
-	return 0;
-
+	ret = 0;
 err_put_links:
 	fwnode_handle_put(links_fwnode);

--
2.44.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-03-02 11:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-01  7:46 [PATCH] media: i2c: ds90ub960: Delete duplicate source code in ub960_parse_dt_rxports() Markus Elfring
2024-03-01  8:46 ` Sakari Ailus
2024-03-01  8:49   ` Tomi Valkeinen
2024-03-01  9:02     ` Sakari Ailus
2024-03-01 17:36       ` Andy Shevchenko
2024-03-02  9:13         ` Dan Carpenter
2024-03-02 11:25           ` Markus Elfring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox