mirror of https://github.com/thesofproject/sof.git
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:
parent
8a24a326ac
commit
2097ba2d27
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue