Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dd1b94bf authored by Christian Engelmayer's avatar Christian Engelmayer Committed by Mark Brown
Browse files

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: default avatarChristian Engelmayer <cengelma@gmx.at>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent f3046f86
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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;
	}