diff mbox

ASoC: Intel: Fix block allocation so we only allocate blocks once.

Message ID 1399046194-5544-1-git-send-email-liam.r.girdwood@linux.intel.com (mailing list archive)
State Accepted
Commit 48695f3d4e7abbfb8fbba45397dce4d5fc0ccfed
Headers show

Commit Message

Liam Girdwood May 2, 2014, 3:56 p.m. UTC
Make sure we dont alloc blocks twice with requests spanning more
than one block.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
---
 sound/soc/intel/sst-firmware.c | 4 ----
 1 file changed, 4 deletions(-)

Comments

Mark Brown May 2, 2014, 4:52 p.m. UTC | #1
On Fri, May 02, 2014 at 04:56:27PM +0100, Liam Girdwood wrote:
> Make sure we dont alloc blocks twice with requests spanning more
> than one block.

Applied, thanks.
diff mbox

Patch

diff --git a/sound/soc/intel/sst-firmware.c b/sound/soc/intel/sst-firmware.c
index f768710..c4e7126 100644
--- a/sound/soc/intel/sst-firmware.c
+++ b/sound/soc/intel/sst-firmware.c
@@ -376,10 +376,6 @@  static int block_alloc_fixed(struct sst_module *module,
 			if (err < 0)
 				return -ENOMEM;
 
-			/* add block */
-			block->data_type = data->data_type;
-			list_move(&block->list, &dsp->used_block_list);
-			list_add(&block->module_list, &module->block_list);
 			return 0;
 		}