Skip to content

Commit 41e8a57

Browse files
Dan Carpentertiwai
authored andcommitted
ALSA: mixart: don't print an unintialized variable on error
My static checker complains that "resp" could be unitialized on error when we print its value. Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Takashi Sakamoto <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
1 parent 5137d6d commit 41e8a57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/pci/mixart/mixart_mixer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ static int mixart_update_monitoring(struct snd_mixart* chip, int channel)
965965
int err;
966966
struct mixart_msg request;
967967
struct mixart_set_out_audio_level audio_level;
968-
u32 resp;
968+
u32 resp = 0;
969969

970970
if(chip->pipe_out_ana.status == PIPE_UNDEFINED)
971971
return -EINVAL; /* no pipe defined */

0 commit comments

Comments
 (0)