Skip to content

Commit 5569d73

Browse files
Tang Bindlezcano
authored andcommitted
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>
1 parent e5cfc09 commit 5569d73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clocksource/timer-gxp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ static int __init gxp_timer_init(struct device_node *node)
8585

8686
clk = of_clk_get(node, 0);
8787
if (IS_ERR(clk)) {
88-
ret = (int)PTR_ERR(clk);
88+
ret = PTR_ERR(clk);
8989
pr_err("%pOFn clock not found: %d\n", node, ret);
9090
goto err_free;
9191
}

0 commit comments

Comments
 (0)