host: fix an uninitialized warning issue

We met a variable uninitialized issue:
'ret' might be used uninitialized in this function.
host.c:606 | host_preload()

Here adding the initialized assignment to fix this issue.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
This commit is contained in:
Keyon Jie 2017-02-14 17:41:46 +08:00 committed by Liam Girdwood
parent 12d789ad5b
commit 1cdbc3e426
1 changed files with 1 additions and 1 deletions

View File

@ -583,7 +583,7 @@ static int host_params(struct comp_dev *dev, struct stream_params *params)
static int host_preload(struct comp_dev *dev)
{
struct host_data *hd = comp_get_drvdata(dev);
int ret, i;
int ret = 0, i;
trace_host("PrL");