ASoC: msm: qdspv2: initialize struct member before being used
Initialize member value of struct audio_aio_write_param after declaration. CRs-Fixed: 2091953 Change-Id: Iaf3ff1232e85ae8d26e9d97ce4c2aa3408da7a80 Signed-off-by: Yidong Huang <yidongh@codeaurora.org>
This commit is contained in:
parent
cb1c821645
commit
76870985af
1 changed files with 2 additions and 0 deletions
|
@ -1062,6 +1062,8 @@ static int audio_aio_async_write(struct q6audio_aio *audio,
|
|||
struct audio_client *ac;
|
||||
struct audio_aio_write_param param;
|
||||
|
||||
memset(¶m, 0, sizeof(param));
|
||||
|
||||
if (!audio || !buf_node) {
|
||||
pr_err("%s NULL pointer audio=[0x%pK], buf_node=[0x%pK]\n",
|
||||
__func__, audio, buf_node);
|
||||
|
|
Loading…
Add table
Reference in a new issue