pipeline: preload: dont return an error if preload completes

Dont return an error and emit trace errors if preload succeeds.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
This commit is contained in:
Liam Girdwood 2017-09-05 23:42:43 +01:00
parent 4d5af6f8ac
commit 097e0a1947
1 changed files with 4 additions and 1 deletions

View File

@ -529,8 +529,11 @@ int pipeline_prepare(struct pipeline *p, struct comp_dev *dev)
ret = preload_downstream(dev, dev);
/* errors ? */
if (ret < 0)
break;
/* complete ? */
if (ret <= 0)
else if (ret == 0)
goto out;
}