mirror of https://github.com/thesofproject/sof.git
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:
parent
17b3b01de9
commit
88793e3288
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue