Skip to content

Commit

Permalink
clocksource/drivers/arm_arch_timer: Remove unnecessary ‘0’ values fro…
Browse files Browse the repository at this point in the history
…m 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>
  • Loading branch information
likunyur authored and dlezcano committed Jul 12, 2024
1 parent 256abd8 commit 7cbbcbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/clocksource/arm_arch_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7cbbcbd

Please sign in to comment.