From patchwork Wed Aug 11 13:15:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tang Bin X-Patchwork-Id: 12431239 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 53D00C4338F for ; Wed, 11 Aug 2021 13:17:11 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 8BE5C60FC0 for ; Wed, 11 Aug 2021 13:17:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8BE5C60FC0 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=cmss.chinamobile.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id: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=cCdNzs7StbWqT0P/isPfIurDBtE37BR5O7x683dUeiw=; b=rXi6859kmCNWCp qc8C4l/VtYYZ7kafq2VZZR/gAfFKsoq1xoZTe1ecsXS1nV1akEfz2S+KbXhN/LkZdZB67aGYTuK9y tof3Z9Tz7OTWcW0Zj2CfCM2RpKdAhjACL8SzL+hvCXgTtopudBbLMeT2ch4Xyc1Tz/870fSM0WZPn zWScmhDKxMYO9ZfE2vzheGi3/9c5CLc2YcmRL+xuZPu57iVwyCGguO7U5LlN1VlYOwuYbgwx6VFXX +m+QPfZrjoqaNgOl6BQclApik4HhF0cMEiVnL3wqNbaXGfsJ3gbQIG+b7RIWp+2sTCLXGDx9IOyMc CWetckrUoD23fo2H6u5Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mDo4Q-007I4U-3T; Wed, 11 Aug 2021 13:14:58 +0000 Received: from cmccmta1.chinamobile.com ([221.176.66.79]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mDo4K-007I3i-Or for linux-arm-kernel@lists.infradead.org; Wed, 11 Aug 2021 13:14:55 +0000 Received: from spf.mail.chinamobile.com (unknown[172.16.121.11]) by rmmx-syy-dmz-app02-12002 (RichMail) with SMTP id 2ee26113cd49d14-64d0b; Wed, 11 Aug 2021 21:14:49 +0800 (CST) X-RM-TRANSID: 2ee26113cd49d14-64d0b X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from localhost.localdomain (unknown[223.112.105.130]) by rmsmtp-syy-appsvr06-12006 (RichMail) with SMTP id 2ee66113cd44cdd-41e64; Wed, 11 Aug 2021 21:14:49 +0800 (CST) X-RM-TRANSID: 2ee66113cd44cdd-41e64 From: Tang Bin To: linux@armlinux.org.uk Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Tang Bin Subject: [PATCH] ARM/smp_twd: Cleanup the unnecessary cast Date: Wed, 11 Aug 2021 21:15:12 +0800 Message-Id: <20210811131512.940-1-tangbin@cmss.chinamobile.com> X-Mailer: git-send-email 2.20.1.windows.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210811_061453_497432_B57FB1A4 X-CRM114-Status: UNSURE ( 9.15 ) 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 It's not necessary to specify 'int' castingfor 'PTR_ERR(twd_clk)'. Signed-off-by: Tang Bin Reported-by: kernel test robot --- 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; }