diff options
author | Li kunyu <kunyu@nfschina.com> | 2024-07-05 07:21:59 +0200 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2024-07-12 16:07:05 +0200 |
commit | f3539a6a6998e1e662fdb30af435f239d5931c98 (patch) | |
tree | 554de32180896653dcfac94705a36f746c244253 /drivers/clocksource | |
parent | clocksource/drivers/arm_arch_timer: Remove unnecessary ‘0’ values from irq (diff) | |
download | linux-f3539a6a6998e1e662fdb30af435f239d5931c98.tar.xz linux-f3539a6a6998e1e662fdb30af435f239d5931c98.zip |
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>
Diffstat (limited to 'drivers/clocksource')
-rw-r--r-- | drivers/clocksource/arm_global_timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clocksource/arm_global_timer.c b/drivers/clocksource/arm_global_timer.c index ab1c8c2b66b8..a05cfaab5f84 100644 --- a/drivers/clocksource/arm_global_timer.c +++ b/drivers/clocksource/arm_global_timer.c @@ -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 |