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:
Peter Ujfalusi 2021-10-15 09:07:13 +03:00 committed by Liam Girdwood
parent 0eda4302e3
commit ed7067f7f4
1 changed files with 1 additions and 1 deletions

View File

@ -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__