diff mbox series

[v4,17/17] clk: do not initialize ret

Message ID 20210923132046.1860549-18-claudiu.beznea@microchip.com (mailing list archive)
State New, archived
Headers show
Series clk: at91: updates for power management and dvfs | expand

Commit Message

Claudiu Beznea Sept. 23, 2021, 1:20 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 Oct. 8, 2021, 3:55 a.m. UTC | #1
Quoting Claudiu Beznea (2021-09-23 06:20:46)
> There is no need to initialize ret.
> 
> Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
> ---

Same comment. Feel free to send them separately.

>  drivers/clk/clk.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
diff mbox series

Patch

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;