Skip to content

Commit 294783e

Browse files
Dan Carpentertiwai
authored andcommitted
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>
1 parent ca80e26 commit 294783e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/pci/mixart/mixart_mixer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ int mixart_update_playback_stream_level(struct snd_mixart* chip, int is_aes, int
726726
int volume[2];
727727
struct mixart_msg request;
728728
struct mixart_set_out_stream_level_req set_level;
729-
u32 status;
729+
u32 status = 0;
730730
struct mixart_pipe *pipe;
731731

732732
memset(&set_level, 0, sizeof(set_level));
@@ -778,7 +778,7 @@ int mixart_update_capture_stream_level(struct snd_mixart* chip, int is_aes)
778778
struct mixart_pipe *pipe;
779779
struct mixart_msg request;
780780
struct mixart_set_in_audio_level_req set_level;
781-
u32 status;
781+
u32 status = 0;
782782

783783
if(is_aes) {
784784
idx = 1;

0 commit comments

Comments
 (0)