Skip to content

Commit 8adc8e1

Browse files
GT119119arndb
authored andcommitted
bus: del unnecessary init var
The compiler generates initialization instructions, which consume additional CPU cycles. the sysc_clockdomain_init should assign a value to 'error' before it is read.so the var don't need init to 0. Signed-off-by: Li Jun <lijun01@kylinos.cn> Link: https://lore.kernel.org/r/20250604081712.119523-1-lijun01@kylinos.cn Signed-off-by: Kevin Hilman <khilman@baylibre.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent 985da98 commit 8adc8e1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/bus/ti-sysc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2170,9 +2170,8 @@ static int sysc_reset(struct sysc *ddata)
21702170
static int sysc_init_module(struct sysc *ddata)
21712171
{
21722172
bool rstctrl_deasserted = false;
2173-
int error = 0;
2173+
int error = sysc_clockdomain_init(ddata);
21742174

2175-
error = sysc_clockdomain_init(ddata);
21762175
if (error)
21772176
return error;
21782177

0 commit comments

Comments
 (0)