Skip to contentSkip to conversation

clocksource: arm_arch_timer: Remove unnecessary ‘0’ values from irq

PATCH Applied Li kunyu 2 participants 2 messages Jul 5, 2024 – Jul 13, 2024

Subsystems (2)
lore
Share & tools
lore

Li kunyu

author
#0 lore raw

PATCH 1/1 clocksource: arm_arch_timer: Remove unnecessary ‘0’ values from irq

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

---
 drivers/clocksource/arm_arch_timer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clocksource/arm_arch_timer.c +1 -1
index 5bb43cc1a8df..aeafc74181f0 100644
@@ -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;
Signature · 1 line
2.18.2
merge bot Applied
#1 lore raw

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

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

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 <[email protected]>
AuthorDate:    Fri, 05 Jul 2024 12:07:29 +08:00
Committer:     Daniel Lezcano <[email protected]>
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.

---
 drivers/clocksource/arm_arch_timer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clocksource/arm_arch_timer.c +1 -1
index 5bb43cc..aeafc74 100644
@@ -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;