clocksource: arm_arch_timer: Remove unnecessary ‘0’ values from irq
Subsystems (2)
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.
Signed-off-by Li kunyu <[email protected]>
--- drivers/clocksource/arm_arch_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clocksource/arm_arch_timer.c +1 -1
@@ -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
[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.
Signed-off-by Li kunyu <[email protected]>
Signed-off-by Daniel Lezcano <[email protected]>
--- drivers/clocksource/arm_arch_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clocksource/arm_arch_timer.c +1 -1
@@ -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;