Skip to content

Commit

Permalink
ALSA: mixart: silence unitialized variable warnings
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
Dan Carpenter authored and tiwai committed Mar 15, 2016
1 parent ca80e26 commit 294783e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/pci/mixart/mixart_mixer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 294783e

Please sign in to comment.