Skip to content

Commit f3539a6

Browse files
likunyurdlezcano
authored andcommitted
clocksource/driver/arm_global_timer: Remove unnecessary ‘0’ values from 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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Lezcano <[email protected]>
1 parent 7cbbcbd commit f3539a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clocksource/arm_global_timer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ static int __init global_timer_of_register(struct device_node *np)
343343
{
344344
struct clk *gt_clk;
345345
static unsigned long gt_clk_rate;
346-
int err = 0;
346+
int err;
347347

348348
/*
349349
* In A9 r2p0 the comparators for each processor with the global timer

0 commit comments

Comments
 (0)