[PATCH] clocksource: arm_global_timer: Remove unnecessary ‘0’ values from err
Li kunyu
kunyu at nfschina.com
Thu Jul 4 22:21:59 PDT 2024
err is assigned first, so it does not need to initialize the assignment.
Signed-off-by: Li kunyu <kunyu at nfschina.com>
---
drivers/clocksource/arm_global_timer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clocksource/arm_global_timer.c b/drivers/clocksource/arm_global_timer.c
index ab1c8c2b66b8..a05cfaab5f84 100644
--- a/drivers/clocksource/arm_global_timer.c
+++ b/drivers/clocksource/arm_global_timer.c
@@ -343,7 +343,7 @@ static int __init global_timer_of_register(struct device_node *np)
{
struct clk *gt_clk;
static unsigned long gt_clk_rate;
- int err = 0;
+ int err;
/*
* In A9 r2p0 the comparators for each processor with the global timer
--
2.18.2
More information about the linux-arm-kernel
mailing list