From nobody Sun Nov 24 03:24:31 2024 Received: from cmccmta3.chinamobile.com (cmccmta6.chinamobile.com [111.22.67.139]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C19A019A2A3 for ; Thu, 7 Nov 2024 07:46:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=111.22.67.139 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730965610; cv=none; b=FdLWZlgijB1UkU/86M+h9V52TIRNrVUe0a3K0adhb+A18FepIuYcVsHnP6t/ejpLKRWsRp7QuclqvM07yxg2Gy8vZHS/spSW+lhDwIu5MHT8KIcQ7r16q+SW4sv7oWAnAVn3EMwpiA8Am0bY5v1ILZ1f1CUXVcKhkkoksJLZvYw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730965610; c=relaxed/simple; bh=JP9+pu6MUDr4kfJFgo4qEj9YFlWtuGQzqvH3BKbeOrs=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=ZuIXjb7CMzaxtYgUszxppjL2JO6PXBWJuVy8moROMtJIvURe7oLIKqodEPtecmjSpIgdItcM0kP4VhmQgSloXMiK631+c46S/131OuGKKpcTtUx5WNw1sk3Nl8jvqYS1spv+Pf94FTbKRQ5TN8vwhSImTWHSqB7VnmXmbkpK7Xw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cmss.chinamobile.com; spf=pass smtp.mailfrom=cmss.chinamobile.com; arc=none smtp.client-ip=111.22.67.139 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cmss.chinamobile.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cmss.chinamobile.com X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from spf.mail.chinamobile.com (unknown[10.188.0.87]) by rmmx-syy-dmz-app09-12009 (RichMail) with SMTP id 2ee9672c70645d9-ec5ed; Thu, 07 Nov 2024 15:46:44 +0800 (CST) X-RM-TRANSID: 2ee9672c70645d9-ec5ed X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from localhost.localdomain (unknown[10.55.1.71]) by rmsmtp-syy-appsvr01-12001 (RichMail) with SMTP id 2ee1672c704dbdc-59399; Thu, 07 Nov 2024 15:46:44 +0800 (CST) X-RM-TRANSID: 2ee1672c704dbdc-59399 From: Tang Bin To: verdun@hpe.com, nick.hawkins@hpe.com, daniel.lezcano@linaro.org, tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Tang Bin Subject: [PATCH] clocksource: Remove redundant casts Date: Thu, 7 Nov 2024 15:46:19 +0800 Message-Id: <20241107074619.2714-1-tangbin@cmss.chinamobile.com> X-Mailer: git-send-email 2.33.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" In the function gxp_timer_init, the 'int' type cast in front of the PTR_ERR() macro is redundant, thus remove it. Signed-off-by: Tang Bin --- drivers/clocksource/timer-gxp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/timer-gxp.c b/drivers/clocksource/timer-gx= p.c index 57aa2e2cc..48a73c101 100644 --- a/drivers/clocksource/timer-gxp.c +++ b/drivers/clocksource/timer-gxp.c @@ -85,7 +85,7 @@ static int __init gxp_timer_init(struct device_node *node) =20 clk =3D of_clk_get(node, 0); if (IS_ERR(clk)) { - ret =3D (int)PTR_ERR(clk); + ret =3D PTR_ERR(clk); pr_err("%pOFn clock not found: %d\n", node, ret); goto err_free; } --=20 2.33.0