Explorar o código

[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 %!s(int64=19) %!d(string=hai) anos
pai
achega
fe25ad8a84
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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.
         */
 
-	u16 sample_short;
+	u16 sample_short = 0;
 	u32 length;
 	u16 __user *data_end = NULL;
 	unsigned int i;