summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Jun <lijun01@kylinos.cn>2025-06-04 11:17:12 +0300
committerArnd Bergmann <arnd@arndb.de>2025-07-22 23:23:07 +0300
commit8adc8e1657e19849c02c764e371478a05ca83c57 (patch)
tree669138c7511e52fcb8cd06fbb7d20e7adb6f2e4d
parent985da98f294ae7bd83b58ca50374a07972d594bf (diff)
downloadlinux-8adc8e1657e19849c02c764e371478a05ca83c57.tar.xz
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>
-rw-r--r--drivers/bus/ti-sysc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c
index 9f624e5da991..5566ad11399e 100644
--- a/drivers/bus/ti-sysc.c
+++ b/drivers/bus/ti-sysc.c
@@ -2170,9 +2170,8 @@ static int sysc_reset(struct sysc *ddata)
static int sysc_init_module(struct sysc *ddata)
{
bool rstctrl_deasserted = false;
- int error = 0;
+ int error = sysc_clockdomain_init(ddata);
- error = sysc_clockdomain_init(ddata);
if (error)
return error;