mirror of https://github.com/thesofproject/sof.git
dma-trace: Simply return with if dma_trace_buffer_init() fails
dma_trace_buffer_init() can only fail if the rballoc fails so there is no need to call dma_trace_buffer_free() as the buffer has not been allocated Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
This commit is contained in:
parent
0eda4302e3
commit
ed7067f7f4
|
@ -425,7 +425,7 @@ int dma_trace_enable(struct dma_trace_data *d)
|
|||
|
||||
if (err < 0) {
|
||||
mtrace_printf(LOG_LEVEL_ERROR, "dma_trace_enable: buffer_init failed");
|
||||
goto out;
|
||||
return err;
|
||||
}
|
||||
|
||||
#ifdef __ZEPHYR__
|
||||
|
|
Loading…
Reference in New Issue