[tip: timers/core] clocksource/drivers/arm_arch_timer: Remove unnecessary ‘0’ values from irq

From: tip-bot2 for Li kunyu
Date: Sat Jul 13 2024 - 06:18:23 EST


The following commit has been merged into the timers/core branch of tip:

Commit-ID: 7cbbcbd4b5bb68a6208b872612bb301683dc7114
Gitweb: https://git.kernel.org/tip/7cbbcbd4b5bb68a6208b872612bb301683dc7114
Author: Li kunyu <kunyu@xxxxxxxxxxxx>
AuthorDate: Fri, 05 Jul 2024 12:07:29 +08:00
Committer: Daniel Lezcano <daniel.lezcano@xxxxxxxxxx>
CommitterDate: Fri, 12 Jul 2024 16:07:05 +02:00

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@xxxxxxxxxxxx>
Link: https://lore.kernel.org/r/20240705040729.21961-1-kunyu@xxxxxxxxxxxx
Signed-off-by: Daniel Lezcano <daniel.lezcano@xxxxxxxxxx>
---
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 5bb43cc..aeafc74 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;