mirror of https://github.com/thesofproject/sof.git
audio: module adapter: fix redefinition problem
When I was using xtensa to build mt8188 platform, I encountered an error: 'redefinition of i'. To fix the problem, I removed the declaration in the for loop. Signed-off-by: Trevor Wu <trevor.wu@mediatek.com>
This commit is contained in:
parent
c6ba44228a
commit
4624b3d7bd
|
@ -1450,9 +1450,9 @@ int module_adapter_reset(struct comp_dev *dev)
|
|||
#endif /* CONFIG_ZEPHYR_DP_SCHEDULER */
|
||||
if (IS_PROCESSING_MODE_SINK_SOURCE(mod)) {
|
||||
/* for both LL and DP processing */
|
||||
for (int i = 0; i < mod->num_of_sources; i++)
|
||||
for (i = 0; i < mod->num_of_sources; i++)
|
||||
mod->sources[i] = NULL;
|
||||
for (int i = 0; i < mod->num_of_sinks; i++)
|
||||
for (i = 0; i < mod->num_of_sinks; i++)
|
||||
mod->sinks[i] = NULL;
|
||||
mod->num_of_sinks = 0;
|
||||
mod->num_of_sources = 0;
|
||||
|
|
Loading…
Reference in New Issue