mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 01:34:14 +08:00
ASoC: Intel: Fix a self assignment in sst_mem_block_alloc_scratch()
Remove a self assignment in sst_mem_block_alloc_scratch(). When calculating buffer sizes there is no need for statements without effect. Detected by Coverity: CID 1195249. Signed-off-by: Christian Engelmayer <cengelma@gmx.at> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
f3046f86b8
commit
dd1b94bf49
@ -505,9 +505,7 @@ struct sst_module *sst_mem_block_alloc_scratch(struct sst_dsp *dsp)
|
||||
|
||||
/* calculate required scratch size */
|
||||
list_for_each_entry(sst_module, &dsp->module_list, list) {
|
||||
if (scratch->s.size > sst_module->s.size)
|
||||
scratch->s.size = scratch->s.size;
|
||||
else
|
||||
if (scratch->s.size < sst_module->s.size)
|
||||
scratch->s.size = sst_module->s.size;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user