ipc4: fix uninitialised variable warnings

The ret variable in ipc4_trigger_chain_dma() can be used
uninitialised. Fix it.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
Guennadi Liakhovetski 2022-01-24 13:43:45 +01:00 committed by Liam Girdwood
parent 8a24a326ac
commit 2097ba2d27
1 changed files with 1 additions and 1 deletions

View File

@ -660,7 +660,7 @@ int ipc4_trigger_chain_dma(struct ipc *ipc, struct ipc4_chain_dma *cdma)
}
if (!cdma->header.r.allocate) {
tr_err(&ipc_tr, "can't enable chain dma %d", ret);
tr_err(&ipc_tr, "can't enable chain dma");
return IPC4_INVALID_REQUEST;
}