提交 41e8a578 编写于 作者: D Dan Carpenter 提交者: Takashi Iwai

ALSA: mixart: don't print an unintialized variable on error

My static checker complains that "resp" could be unitialized on error
when we print its value.
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: NTakashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 5137d6da
...@@ -965,7 +965,7 @@ static int mixart_update_monitoring(struct snd_mixart* chip, int channel) ...@@ -965,7 +965,7 @@ static int mixart_update_monitoring(struct snd_mixart* chip, int channel)
int err; int err;
struct mixart_msg request; struct mixart_msg request;
struct mixart_set_out_audio_level audio_level; struct mixart_set_out_audio_level audio_level;
u32 resp; u32 resp = 0;
if(chip->pipe_out_ana.status == PIPE_UNDEFINED) if(chip->pipe_out_ana.status == PIPE_UNDEFINED)
return -EINVAL; /* no pipe defined */ return -EINVAL; /* no pipe defined */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册