diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-07-13 12:59:53 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2016-07-13 12:22:42 +0200 |
commit | 41e8a5788b5a1e187a690877d83b0f485c8c4ccd (patch) | |
tree | 0b23d9cde250760506cc6b10e03f6e59ceb1323e /sound/pci | |
parent | 5137d6da462d26bb2cb0c7a6960888adb789fb3d (diff) |
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: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/mixart/mixart_mixer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/mixart/mixart_mixer.c b/sound/pci/mixart/mixart_mixer.c index 58fd79ebac20..51e53497f0ad 100644 --- a/sound/pci/mixart/mixart_mixer.c +++ b/sound/pci/mixart/mixart_mixer.c @@ -965,7 +965,7 @@ static int mixart_update_monitoring(struct snd_mixart* chip, int channel) int err; struct mixart_msg request; struct mixart_set_out_audio_level audio_level; - u32 resp; + u32 resp = 0; if(chip->pipe_out_ana.status == PIPE_UNDEFINED) return -EINVAL; /* no pipe defined */ |