Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 82aae918 authored by yidongh's avatar yidongh Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarYidong Huang <yidongh@codeaurora.org>
parent 028be1cf
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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(&param, 0, sizeof(param));

	if (!audio || !buf_node) {
		pr_err("%s NULL pointer audio=[0x%pK], buf_node=[0x%pK]\n",
			__func__, audio, buf_node);