dw-dma: use a generic allocation

When allocating an LLI array no need to use rzalloc() since the array
is 0-initialised directly after allocation anyway.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
Guennadi Liakhovetski 2020-08-11 11:41:13 +02:00 committed by Liam Girdwood
parent 75ed28b682
commit aa0aee9b54
1 changed files with 1 additions and 1 deletions

View File

@ -549,7 +549,7 @@ static int dw_dma_set_config(struct dma_chan_data *channel,
if (dw_chan->lli)
rfree(dw_chan->lli);
dw_chan->lli = rzalloc(SOF_MEM_ZONE_SYS_RUNTIME, 0,
dw_chan->lli = rmalloc(SOF_MEM_ZONE_SYS_RUNTIME, 0,
SOF_MEM_CAPS_RAM | SOF_MEM_CAPS_DMA,
sizeof(struct dw_lli) *
channel->desc_count);