Re: [PATCH] ASoC: qcom: Fix a uninitialized warning.

2018-09-18 Thread zhong jiang
On 2018/9/19 1:17, Andy Gross wrote: > On Tue, Sep 18, 2018 at 01:06:48PM +0800, zhong jiang wrote: >> Fix the following compile warning: >> >> drivers/soc/qcom/cmd-db.c:194:38: warning: 'ent.addr' may be used >> uninitialized in this function [-Wmaybe-uninitialized] >> return ret < 0 ? 0 : le32

Re: [PATCH] ASoC: qcom: Fix a uninitialized warning.

2018-09-18 Thread Andy Gross
On Tue, Sep 18, 2018 at 01:06:48PM +0800, zhong jiang wrote: > Fix the following compile warning: > > drivers/soc/qcom/cmd-db.c:194:38: warning: ‘ent.addr’ may be used > uninitialized in this function [-Wmaybe-uninitialized] > return ret < 0 ? 0 : le32_to_cpu(ent.addr); > > drivers/soc/qcom/cm

[PATCH] ASoC: qcom: Fix a uninitialized warning.

2018-09-17 Thread zhong jiang
Fix the following compile warning: drivers/soc/qcom/cmd-db.c:194:38: warning: ‘ent.addr’ may be used uninitialized in this function [-Wmaybe-uninitialized] return ret < 0 ? 0 : le32_to_cpu(ent.addr); drivers/soc/qcom/cmd-db.c:247:38: warning: ‘ent.len’ may be used uninitialized in this functi