6 Sep
2017
6 Sep
'17
12:53 a.m.
Dont return an error and emit trace errors if preload succeeds.
Signed-off-by: Liam Girdwood liam.r.girdwood@linux.intel.com --- src/audio/pipeline.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/audio/pipeline.c b/src/audio/pipeline.c index 26e0295..9aedc21 100644 --- a/src/audio/pipeline.c +++ b/src/audio/pipeline.c @@ -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; }
--
2.11.0