mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] clocksource: arm_arch_timer: Remove unnecessary ‘0’ values from irq
@ 2024-07-05  4:07 Li kunyu
  2024-07-13 10:16 ` [tip: timers/core] clocksource/drivers/arm_arch_timer: " tip-bot2 for Li kunyu
  0 siblings, 1 reply; 2+ messages in thread
From: Li kunyu @ 2024-07-05  4:07 UTC (permalink / raw)
  To: mark.rutland, maz, daniel.lezcano, tglx
  Cc: linux-arm-kernel, linux-kernel, Li kunyu

irq is assigned first, so it does not need to initialize the assignment.

Signed-off-by: Li kunyu <kunyu@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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-07-13 10:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-05  4:07 [PATCH] clocksource: arm_arch_timer: Remove unnecessary ‘0’ values from irq Li kunyu
2024-07-13 10:16 ` [tip: timers/core] clocksource/drivers/arm_arch_timer: " tip-bot2 for Li kunyu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®