]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
clocksource/drivers/gpx: Remove redundant casts
authorTang Bin <tangbin@cmss.chinamobile.com>
Thu, 7 Nov 2024 07:46:19 +0000 (15:46 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 13 Nov 2024 12:49:33 +0000 (13:49 +0100)
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>
drivers/clocksource/timer-gxp.c

index 57aa2e2cce53a513f56f6044275a24778908705a..48a73c101eb85a1fd6bb53f7c3e72cd9a138ca67 100644 (file)
@@ -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;
        }