projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5cfc09
)
clocksource/drivers/gpx: Remove redundant casts
author
Tang Bin
<tangbin@cmss.chinamobile.com>
Thu, 7 Nov 2024 07:46:19 +0000
(15:46 +0800)
committer
Daniel 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
patch
|
blob
|
history
diff --git
a/drivers/clocksource/timer-gxp.c
b/drivers/clocksource/timer-gxp.c
index
57aa2e2
..
48a73c1
100644
(file)
--- 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;
}