mirror of https://github.com/thesofproject/sof.git
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:
parent
12d789ad5b
commit
1cdbc3e426
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in New Issue