diff mbox series

[2/2] clk: do not initialize ret

Message ID 20220630151205.3935560-2-claudiu.beznea@microchip.com (mailing list archive)
State Accepted, archived
Headers show
Series [1/2] clk: remove extra empty line | expand

Commit Message

Claudiu Beznea June 30, 2022, 3:12 p.m. UTC
There is no need to initialize ret.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 drivers/clk/clk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stephen Boyd Aug. 24, 2022, 12:54 a.m. UTC | #1
Quoting Claudiu Beznea (2022-06-30 08:12:05)
> There is no need to initialize ret.
> 
> Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
> ---

Applied to clk-next
diff mbox series

Patch

diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 1cff79a7f8a4..af6f8b48a561 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -2189,7 +2189,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;