summaryrefslogtreecommitdiff
path: root/drivers/clocksource/timer-gxp.c
diff options
context:
space:
mode:
authorTang Bin <tangbin@cmss.chinamobile.com>2024-11-07 10:46:19 +0300
committerDaniel Lezcano <daniel.lezcano@linaro.org>2024-11-13 15:49:33 +0300
commit5569d7348b4a927eb5a2449ddc175ec7c3930c4d (patch)
tree7247d717f34d2f4b22468d5f3feacd683aca72b8 /drivers/clocksource/timer-gxp.c
parente5cfc0989d9a2849c51c720a16b90b2c061a1aeb (diff)
downloadlinux-5569d7348b4a927eb5a2449ddc175ec7c3930c4d.tar.xz
clocksource/drivers/gpx: Remove redundant casts
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 <tangbin@cmss.chinamobile.com> Link: https://lore.kernel.org/r/20241107074619.2714-1-tangbin@cmss.chinamobile.com Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'drivers/clocksource/timer-gxp.c')
-rw-r--r--drivers/clocksource/timer-gxp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clocksource/timer-gxp.c b/drivers/clocksource/timer-gxp.c
index 57aa2e2cce53..48a73c101eb8 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)
clk = of_clk_get(node, 0);
if (IS_ERR(clk)) {
- ret = (int)PTR_ERR(clk);
+ ret = PTR_ERR(clk);
pr_err("%pOFn clock not found: %d\n", node, ret);
goto err_free;
}