projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5137d6d
)
ALSA: mixart: don't print an unintialized variable on error
author
Dan Carpenter
<dan.carpenter@oracle.com>
Wed, 13 Jul 2016 09:59:53 +0000
(12:59 +0300)
committer
Takashi Iwai
<tiwai@suse.de>
Wed, 13 Jul 2016 10:22:42 +0000
(12:22 +0200)
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>
sound/pci/mixart/mixart_mixer.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/mixart/mixart_mixer.c
b/sound/pci/mixart/mixart_mixer.c
index 58fd79ebac2082805662104e8616696166f2e8be..51e53497f0ad1801ab338f548fcc7cbe88ab9a26 100644
(file)
--- 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 */