Thread (19 messages) 19 messages, 1 author, 2021-09-17
STALE1751d
Revisions (2)
  1. v3 current
  2. v4 [diff vs current]

[PATCH v3 17/17] clk: do not initialize ret

From: Claudiu Beznea <hidden>
Date: 2021-09-17 12:08:08
Also in: linux-clk, lkml
Subsystem: common clk framework, the rest · Maintainers: Michael Turquette, Stephen Boyd, Linus Torvalds

There is no need to initialize ret.

Signed-off-by: Claudiu Beznea <redacted>
---
 drivers/clk/clk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 815fe5f6651e..b854c18e73af 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -2175,7 +2175,7 @@ static int clk_core_set_rate_nolock(struct clk_core *core,
 {
 	struct clk_core *top, *fail_clk;
 	unsigned long rate;
-	int ret = 0;
+	int ret;
 
 	if (!core)
 		return 0;
-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help