mirror of https://github.com/thesofproject/sof.git
comp: return warning instead of error in comp_get_model()
In comp_get_model() function we should return warning in case not allocated model->data. Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
This commit is contained in:
parent
6a23e48e15
commit
998f0a422d
|
@ -471,8 +471,9 @@ int comp_get_model(struct comp_dev *dev, struct comp_model_data *model,
|
|||
model->data_pos += bs;
|
||||
|
||||
} else {
|
||||
comp_err(dev, "comp_get_model(): !model->data");
|
||||
ret = -EINVAL;
|
||||
comp_warn(dev, "comp_get_model(): model->data not allocated yet.");
|
||||
cdata->data->abi = SOF_ABI_VERSION;
|
||||
cdata->data->size = 0;
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue