diff options
-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 | ||