[PATCH] clocksource: arm_arch_timer: Remove unnecessary ‘0’ values from irq
Li kunyu
kunyu at nfschina.com
Thu Jul 4 21:07:29 PDT 2024
irq is assigned first, so it does not need to initialize the assignment.
Signed-off-by: Li kunyu <kunyu at nfschina.com>
---
drivers/clocksource/arm_arch_timer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
--
2.18.2
More information about the linux-arm-kernel
mailing list