From patchwork Fri Jul 5 04:07:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li kunyu X-Patchwork-Id: 13724408 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 239D9C30658 for ; Fri, 5 Jul 2024 04:09:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=BQdMZ44HY9yAuIvwN/ja7kNcc9QXIRExXGVFQaKZ388=; b=DBZYOGJJOIB6yVY4Y5RTxkyqJc 88q0KbZqrRWx+AHKQIO34JIfXvkTQj9tzJ7oMiFdyruuH/oE/CQY5WU8EI/k7Y4OVLKjFD/kbVnrg mlrQ4swZiULfH142Pi/swVrfrncfSwfQorDr1JNM0UTLxoLB8QH8Bn7QPm/nAbLuude7W1QTCPD5M i6+FwvLIms01qhCXQtKrFWDtV7hr8OatsMrG1vMhcZ4oCvPpt4D40M2+5iGQKqXkVuu6lagVJ5Wuj 0Rvut1sTAgjfTlfVx6K4IRyhqG2wNB8zUClVkpkPH5WgWf3fsDwvucJm6nqfP13t3yCm+yaazud4d UBJI0+bg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sPaFh-0000000Es0v-06Op; Fri, 05 Jul 2024 04:08:53 +0000 Received: from [42.101.60.195] (helo=mail.nfschina.com) by bombadil.infradead.org with smtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sPaFT-0000000ErxS-1MIM for linux-arm-kernel@lists.infradead.org; Fri, 05 Jul 2024 04:08:41 +0000 Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (MailData Gateway V2.8.8) with ESMTPA id C527160830CC2; Fri, 5 Jul 2024 12:08:20 +0800 (CST) X-MD-Sfrom: kunyu@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li kunyu To: mark.rutland@arm.com, maz@kernel.org, daniel.lezcano@linaro.org, tglx@linutronix.de Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Li kunyu Subject: [PATCH] =?utf-8?q?clocksource=3A_arm=5Farch=5Ftimer=3A_Remove_unnec?= =?utf-8?q?essary_=E2=80=980=E2=80=99_values_from_irq?= Date: Fri, 5 Jul 2024 12:07:29 +0800 Message-Id: <20240705040729.21961-1-kunyu@nfschina.com> X-Mailer: git-send-email 2.18.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240704_210839_579850_6AE1AD48 X-CRM114-Status: UNSURE ( 9.38 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org irq is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li kunyu --- 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;