mirror of https://github.com/thesofproject/sof.git
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:
parent
dd06b5c731
commit
6bccd675bf
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue