[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240705040729.21961-1-kunyu@nfschina.com>
Date: Fri, 5 Jul 2024 12:07:29 +0800
From: Li kunyu <kunyu@...china.com>
To: mark.rutland@....com,
maz@...nel.org,
daniel.lezcano@...aro.org,
tglx@...utronix.de
Cc: linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org,
Li kunyu <kunyu@...china.com>
Subject: [PATCH] clocksource: arm_arch_timer: Remove unnecessary ‘0’ values from irq
irq is assigned first, so it does not need to initialize the assignment.
Signed-off-by: Li kunyu <kunyu@...china.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
Powered by blists - more mailing lists