[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210811131512.940-1-tangbin@cmss.chinamobile.com>
Date: Wed, 11 Aug 2021 21:15:12 +0800
From: Tang Bin <tangbin@...s.chinamobile.com>
To: linux@...linux.org.uk
Cc: linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
Tang Bin <tangbin@...s.chinamobile.com>
Subject: [PATCH] ARM/smp_twd: Cleanup the unnecessary cast
It's not necessary to specify 'int' castingfor 'PTR_ERR(twd_clk)'.
Signed-off-by: Tang Bin <tangbin@...s.chinamobile.com>
---
arch/arm/kernel/smp_twd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/kernel/smp_twd.c b/arch/arm/kernel/smp_twd.c
index 9a14f721a..423e9079d 100644
--- a/arch/arm/kernel/smp_twd.c
+++ b/arch/arm/kernel/smp_twd.c
@@ -199,7 +199,7 @@ static void twd_get_clock(struct device_node *np)
twd_clk = clk_get_sys("smp_twd", NULL);
if (IS_ERR(twd_clk)) {
- pr_err("smp_twd: clock not found %d\n", (int) PTR_ERR(twd_clk));
+ pr_err("smp_twd: clock not found %d\n", PTR_ERR(twd_clk));
return;
}
--
2.20.1.windows.1
Powered by blists - more mailing lists