[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1620373536-29154-1-git-send-email-zhangshaokun@hisilicon.com>
Date: Fri, 7 May 2021 15:45:36 +0800
From: Shaokun Zhang <zhangshaokun@...ilicon.com>
To: <linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>
CC: Shaokun Zhang <zhangshaokun@...ilicon.com>,
Mark Rutland <mark.rutland@....com>,
Marc Zyngier <maz@...nel.org>,
Daniel Lezcano <daniel.lezcano@...aro.org>
Subject: [PATCH] arm64: arch_timer: Remove redundant initialization
The 'irq' and 'ret' will be initialized and cleanup the redundant
initialization.
Cc: Mark Rutland <mark.rutland@....com>
Cc: Marc Zyngier <maz@...nel.org>
Cc: Daniel Lezcano <daniel.lezcano@...aro.org>
Signed-off-by: Shaokun Zhang <zhangshaokun@...ilicon.com>
---
drivers/clocksource/arm_arch_timer.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c
index fe1a82627d57..892871b48865 100644
--- a/drivers/clocksource/arm_arch_timer.c
+++ b/drivers/clocksource/arm_arch_timer.c
@@ -1430,7 +1430,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;
@@ -1574,7 +1574,7 @@ static int __init arch_timer_mem_acpi_init(int platform_timer_count)
{
struct arch_timer_mem *timers, *timer;
struct arch_timer_mem_frame *frame, *best_frame = NULL;
- int timer_count, i, ret = 0;
+ int timer_count, i, ret;
timers = kcalloc(platform_timer_count, sizeof(*timers),
GFP_KERNEL);
--
2.7.4
Powered by blists - more mailing lists