Skip to content

Commit

Permalink
clocksource/driver/arm_global_timer: Remove unnecessary ‘0’ values fr…
Browse files Browse the repository at this point in the history
…om err

The 'err' variable is initialized whatever the code path, it is
pointless to initialize it when it is declared.

Signed-off-by: Li kunyu <kunyu@nfschina.com>
Link: https://lore.kernel.org/r/20240705052159.22235-1-kunyu@nfschina.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
  • Loading branch information
likunyur authored and dlezcano committed Jul 12, 2024
1 parent 7cbbcbd commit f3539a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/clocksource/arm_global_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f3539a6

Please sign in to comment.