clk: do not initialize ret
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Thu, 30 Jun 2022 15:12:05 +0000 (18:12 +0300)
committerStephen Boyd <sboyd@kernel.org>
Wed, 24 Aug 2022 00:53:47 +0000 (17:53 -0700)
There is no need to initialize ret.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20220630151205.3935560-2-claudiu.beznea@microchip.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk.c

index 141af74904e7de4d4d16accee3a5abb9c7d04ab9..8ccce917c2606102276d1468cea817c2b9c6f34c 100644 (file)
@@ -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;