chain DMA: remove redundant code

No need to re-calculate cdma_comp in ipc4_process_chain_dma(), keep
using the already calculated value.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
Guennadi Liakhovetski 2024-01-23 16:57:15 +01:00 committed by Liam Girdwood
parent 17b3b01de9
commit 88793e3288
1 changed files with 0 additions and 4 deletions

View File

@ -714,10 +714,6 @@ static int ipc4_process_chain_dma(struct ipc4_message_request *ipc4)
return IPC4_SUCCESS;
}
cdma_comp = ipc_get_comp_by_id(ipc, comp_id);
if (!cdma_comp)
return IPC4_FAILURE;
ret = ipc4_chain_dma_state(cdma_comp->cd, &cdma);
if (ret < 0)
return IPC4_INVALID_CHAIN_STATE_TRANSITION;