diff options
author | Christian Engelmayer <cengelma@gmx.at> | 2014-04-13 16:46:31 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-04-15 07:12:34 -0400 |
commit | dd1b94bf4920cc12545883faa43c014efbf61b1e (patch) | |
tree | d5e58f505ff2a753ce0655057acb77ed6eb0bcd8 | |
parent | f3046f86b8a455ae55b8d465cd34938006361096 (diff) |
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>
-rw-r--r-- | sound/soc/intel/sst-firmware.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/intel/sst-firmware.c b/sound/soc/intel/sst-firmware.c index f7687107cf7f..f24619adc3d1 100644 --- a/sound/soc/intel/sst-firmware.c +++ b/sound/soc/intel/sst-firmware.c | |||
@@ -505,9 +505,7 @@ struct sst_module *sst_mem_block_alloc_scratch(struct sst_dsp *dsp) | |||
505 | 505 | ||
506 | /* calculate required scratch size */ | 506 | /* calculate required scratch size */ |
507 | list_for_each_entry(sst_module, &dsp->module_list, list) { | 507 | list_for_each_entry(sst_module, &dsp->module_list, list) { |
508 | if (scratch->s.size > sst_module->s.size) | 508 | if (scratch->s.size < sst_module->s.size) |
509 | scratch->s.size = scratch->s.size; | ||
510 | else | ||
511 | scratch->s.size = sst_module->s.size; | 509 | scratch->s.size = sst_module->s.size; |
512 | } | 510 | } |
513 | 511 | ||