Parcourir la source

[ALSA] wavefront - Fix a compile warning

Modules: Wavefront drivers

Fix a gcc-4.1 compile warning regarding uninitialized variables.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Takashi Iwai il y a 19 ans
Parent
commit
fe25ad8a84
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      sound/isa/wavefront/wavefront_synth.c

+ 1 - 1
sound/isa/wavefront/wavefront_synth.c

@@ -866,7 +866,7 @@ wavefront_send_sample (snd_wavefront_t *dev,
 	   divided by 2.
 	   divided by 2.
         */
         */
 
 
-	u16 sample_short;
+	u16 sample_short = 0;
 	u32 length;
 	u32 length;
 	u16 __user *data_end = NULL;
 	u16 __user *data_end = NULL;
 	unsigned int i;
 	unsigned int i;