From: Tony Lindgren Date: Wed, 6 Oct 2021 05:38:09 +0000 (+0300) Subject: bus: ti-sysc: Fix variable set but not used warning for reinit_modules X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a272f990cb266c7c31e5a687bd6838aed68322b6;p=linux.git bus: ti-sysc: Fix variable set but not used warning for reinit_modules commit 1b1da99b845337362a3dafe0f7b49927ab4ae041 upstream. Fix drivers/bus/ti-sysc.c:2494:13: error: variable 'error' set but not used introduced by commit 9d881361206e ("bus: ti-sysc: Add quirk handling for reinit on context lost"). Reported-by: kernel test robot Signed-off-by: Tony Lindgren Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c index bb377bb13564a..ebf22929ff328 100644 --- a/drivers/bus/ti-sysc.c +++ b/drivers/bus/ti-sysc.c @@ -2456,12 +2456,11 @@ static void sysc_reinit_modules(struct sysc_soc_info *soc) struct sysc_module *module; struct list_head *pos; struct sysc *ddata; - int error = 0; list_for_each(pos, &sysc_soc->restored_modules) { module = list_entry(pos, struct sysc_module, node); ddata = module->ddata; - error = sysc_reinit_module(ddata, ddata->enabled); + sysc_reinit_module(ddata, ddata->enabled); } }