diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-03-15 08:09:17 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2016-03-15 10:01:16 +0100 |
commit | 294783e092217bb973b38dbefa11ec4c86878a0e (patch) | |
tree | b12122b8e3663f53363b1a8f2c195c0aedf75510 /sound | |
parent | Merge tag 'asoc-v4.6' of git://git.kernel.org/pub/scm/linux/kernel/git/brooni... (diff) | |
download | linux-294783e092217bb973b38dbefa11ec4c86878a0e.tar.xz linux-294783e092217bb973b38dbefa11ec4c86878a0e.zip |
ALSA: mixart: silence unitialized variable warnings
We print can print the uninitialized memory on error. Which is an info
leak, I suppose but it's basically harmless.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/mixart/mixart_mixer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/mixart/mixart_mixer.c b/sound/pci/mixart/mixart_mixer.c index 24a1955b8c29..58fd79ebac20 100644 --- a/sound/pci/mixart/mixart_mixer.c +++ b/sound/pci/mixart/mixart_mixer.c @@ -726,7 +726,7 @@ int mixart_update_playback_stream_level(struct snd_mixart* chip, int is_aes, int int volume[2]; struct mixart_msg request; struct mixart_set_out_stream_level_req set_level; - u32 status; + u32 status = 0; struct mixart_pipe *pipe; memset(&set_level, 0, sizeof(set_level)); @@ -778,7 +778,7 @@ int mixart_update_capture_stream_level(struct snd_mixart* chip, int is_aes) struct mixart_pipe *pipe; struct mixart_msg request; struct mixart_set_in_audio_level_req set_level; - u32 status; + u32 status = 0; if(is_aes) { idx = 1; |