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

Commit d2109a07 authored by Banajit Goswami's avatar Banajit Goswami
Browse files

ASoC: msm: qdsp6v2: return 0 when wait_for_timeout succeed



The function wait_event_timeout returns the number of jiffies
remaining, if the condition it is waiting for, is met before
timeout happens. Update the return variable to 0, as returning
a non-zero value in Linux (returned by wait_event_timeout)
indicates an error.

Change-Id: Iddc9f4cb37348e6a1bcc91cdb6756b6fa90e17ec
Signed-off-by: default avatarBanajit Goswami <bgoswami@codeaurora.org>
parent 85f074ae
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4216,6 +4216,9 @@ int afe_set_lpass_clk_cfg(int index, struct afe_clk_set *cfg)
		pr_err("%s: wait_event timeout\n", __func__);
		ret = -EINVAL;
		goto fail_cmd;
	} else {
		/* set ret to 0 as no timeout happened */
		ret = 0;
	}
	if (atomic_read(&this_afe.status) != 0) {
		pr_err("%s: config cmd failed\n", __func__);