Skip to content

Commit

Permalink
chain DMA: remove redundant code
Browse files Browse the repository at this point in the history
No need to re-calculate cdma_comp in ipc4_process_chain_dma(), keep
using the already calculated value.

Signed-off-by: Guennadi Liakhovetski <[email protected]>
  • Loading branch information
lyakh committed Jan 23, 2024
1 parent 65e4c1f commit b37cae3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/ipc/ipc4/handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -715,10 +715,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;
Expand Down

0 comments on commit b37cae3

Please sign in to comment.