* [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* [tip: timers/core] clocksource/drivers/arm_arch_timer: Remove unnecessary ‘0’ values from irq
2024-07-05 4:07 [PATCH] clocksource: arm_arch_timer: Remove unnecessary ‘0’ values from irq Li kunyu
@ 2024-07-13 10:16 ` tip-bot2 for Li kunyu
0 siblings, 0 replies; 2+ messages in thread
From: tip-bot2 for Li kunyu @ 2024-07-13 10:16 UTC (permalink / raw)
To: linux-tip-commits; +Cc: Li kunyu, Daniel Lezcano, x86, linux-kernel
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@nfschina.com>
AuthorDate: Fri, 05 Jul 2024 12:07:29 +08:00
Committer: Daniel Lezcano <daniel.lezcano@linaro.org>
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@nfschina.com>
Link: https://lore.kernel.org/r/20240705040729.21961-1-kunyu@nfschina.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
---
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;
^ 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®