clocksource/driver/arm_global_timer: Remove unnecessary ‘0’ values from err

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>
This commit is contained in:
Li kunyu 2024-07-05 13:21:59 +08:00 committed by Daniel Lezcano
parent 7cbbcbd4b5
commit f3539a6a69

View 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