clocksource/driver/arm_global_timer: Remove unnecessary ‘0’ values from err
authorLi kunyu <kunyu@nfschina.com>
Fri, 5 Jul 2024 05:21:59 +0000 (13:21 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 12 Jul 2024 14:07:05 +0000 (16:07 +0200)
The 'err' variable is initialized whatever the code path, it is
pointless to initialize it when it is declared.

Signed-off-by: Li kunyu <kunyu@nfschina.com>
Link: https://lore.kernel.org/r/20240705052159.22235-1-kunyu@nfschina.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/arm_global_timer.c

index ab1c8c2b66b887a8149d1dbc1d6d41428e22c7e9..a05cfaab5f843e5a7ddd055e22f1cb9c72e016f3 100644 (file)
@@ -343,7 +343,7 @@ static int __init global_timer_of_register(struct device_node *np)
 {
        struct clk *gt_clk;
        static unsigned long gt_clk_rate;
-       int err = 0;
+       int err;
 
        /*
         * In A9 r2p0 the comparators for each processor with the global timer