提交 e59d8bb5 编写于 作者: P Pan Bian 提交者: Takashi Iwai

ALSA: echoaudio: Fix improper return value in function load_asic

When the second call to load_asic_generic() fails in function
load_asic(), "false" is returned. The real value of "false" is 0, which
indicates success in the context. As a result, the execution status and
the return value may be inconsistent. This patch fixes the bug.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=188761Signed-off-by: NPan Bian <bianpan2016@163.com>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 c6790c8e
......@@ -135,7 +135,7 @@ static int load_asic(struct echoaudio *chip)
err = load_asic_generic(chip, DSP_FNC_LOAD_LAYLA24_EXTERNAL_ASIC,
FW_LAYLA24_2S_ASIC);
if (err < 0)
return false;
return err;
/* Now give the external ASIC a little time to set up */
mdelay(10);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册