diff options
author | Li kunyu <kunyu@nfschina.com> | 2024-07-05 06:07:29 +0200 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2024-07-12 16:07:05 +0200 |
commit | 7cbbcbd4b5bb68a6208b872612bb301683dc7114 (patch) | |
tree | 5474a71af57fd0e6da23850f31172525219208ee /drivers/clocksource | |
parent | Linux 6.10-rc7 (diff) | |
download | linux-7cbbcbd4b5bb68a6208b872612bb301683dc7114.tar.xz linux-7cbbcbd4b5bb68a6208b872612bb301683dc7114.zip |
clocksource/drivers/arm_arch_timer: Remove unnecessary ‘0’ values from irq
The irq variable is initialized whatever the code path, it is poinless
to initialize when declaring it.
Signed-off-by: Li kunyu <kunyu@nfschina.com>
Link: https://lore.kernel.org/r/20240705040729.21961-1-kunyu@nfschina.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'drivers/clocksource')
-rw-r--r-- | drivers/clocksource/arm_arch_timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c index 5bb43cc1a8df..aeafc74181f0 100644 --- a/drivers/clocksource/arm_arch_timer.c +++ b/drivers/clocksource/arm_arch_timer.c @@ -1556,7 +1556,7 @@ static int __init arch_timer_mem_frame_register(struct arch_timer_mem_frame *frame) { void __iomem *base; - int ret, irq = 0; + int ret, irq; if (arch_timer_mem_use_virtual) irq = frame->virt_irq; |