cavs: propagate error codes instead of overriding them

When returning an error, it's usually better to propagate the error
code, that caused the termination, than overriding it.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
Guennadi Liakhovetski 2019-02-20 09:13:18 +01:00 committed by Liam Girdwood
parent dd06b5c731
commit 6bccd675bf
1 changed files with 2 additions and 2 deletions

View File

@ -500,7 +500,7 @@ int platform_init(struct sof *sof)
trace_point(TRACE_BOOT_PLATFORM_DMA);
ret = dmac_init();
if (ret < 0)
return -ENODEV;
return ret;
/* initialize the host IPC mechanisms */
trace_point(TRACE_BOOT_PLATFORM_IPC);
@ -509,7 +509,7 @@ int platform_init(struct sof *sof)
/* init DAIs */
ret = dai_init();
if (ret < 0)
return -ENODEV;
return ret;
/* initialize IDC mechanism */
trace_point(TRACE_BOOT_PLATFORM_IDC);