提交 1b1da99b 编写于 作者: T Tony Lindgren

bus: ti-sysc: Fix variable set but not used warning for reinit_modules

Fix drivers/bus/ti-sysc.c:2494:13: error: variable 'error' set but not
used introduced by commit 9d881361 ("bus: ti-sysc: Add quirk handling
for reinit on context lost").
Reported-by: Nkernel test robot <lkp@intel.com>
Signed-off-by: NTony Lindgren <tony@atomide.com>
上级 ce7b4323
...@@ -2523,12 +2523,11 @@ static void sysc_reinit_modules(struct sysc_soc_info *soc) ...@@ -2523,12 +2523,11 @@ static void sysc_reinit_modules(struct sysc_soc_info *soc)
struct sysc_module *module; struct sysc_module *module;
struct list_head *pos; struct list_head *pos;
struct sysc *ddata; struct sysc *ddata;
int error = 0;
list_for_each(pos, &sysc_soc->restored_modules) { list_for_each(pos, &sysc_soc->restored_modules) {
module = list_entry(pos, struct sysc_module, node); module = list_entry(pos, struct sysc_module, node);
ddata = module->ddata; ddata = module->ddata;
error = sysc_reinit_module(ddata, ddata->enabled); sysc_reinit_module(ddata, ddata->enabled);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册