Commit 294783e0 authored by Dan Carpenter's avatar Dan Carpenter Committed by Takashi Iwai

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent ca80e26a
...@@ -726,7 +726,7 @@ int mixart_update_playback_stream_level(struct snd_mixart* chip, int is_aes, int ...@@ -726,7 +726,7 @@ int mixart_update_playback_stream_level(struct snd_mixart* chip, int is_aes, int
int volume[2]; int volume[2];
struct mixart_msg request; struct mixart_msg request;
struct mixart_set_out_stream_level_req set_level; struct mixart_set_out_stream_level_req set_level;
u32 status; u32 status = 0;
struct mixart_pipe *pipe; struct mixart_pipe *pipe;
memset(&set_level, 0, sizeof(set_level)); memset(&set_level, 0, sizeof(set_level));
...@@ -778,7 +778,7 @@ int mixart_update_capture_stream_level(struct snd_mixart* chip, int is_aes) ...@@ -778,7 +778,7 @@ int mixart_update_capture_stream_level(struct snd_mixart* chip, int is_aes)
struct mixart_pipe *pipe; struct mixart_pipe *pipe;
struct mixart_msg request; struct mixart_msg request;
struct mixart_set_in_audio_level_req set_level; struct mixart_set_in_audio_level_req set_level;
u32 status; u32 status = 0;
if(is_aes) { if(is_aes) {
idx = 1; idx = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment