Pipeline: Compilation fix for xt-xcc compiler

The xt-xcc compiler does not accept NULL as return value from an int
function.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
Seppo Ingalsuo 2018-02-20 16:00:32 +02:00 committed by Liam Girdwood
parent 34eee5e585
commit 1b0cb08896
1 changed files with 1 additions and 1 deletions

View File

@ -367,7 +367,7 @@ int init_static_pipeline(struct ipc *ipc)
/* init system pipeline core */
ret = pipeline_init();
if (ret < 0)
return NULL;
return ret;
/* create the pipelines */
for (i = 0; i < ARRAY_SIZE(pipeline); i++) {