[alsa-devel] [PATCH 3/3] ALSA: usb-audio: Move configuration to prepare.

Takashi Iwai tiwai at suse.de
Tue Sep 18 14:47:36 CEST 2012


At Mon, 17 Sep 2012 13:11:39 -0700,
Dylan Reid wrote:
> 
> @@ -451,74 +487,32 @@ static int snd_usb_hw_params(struct snd_pcm_substream *substream,
>  	struct snd_usb_substream *subs = substream->runtime->private_data;
>  	struct audioformat *fmt;
>  	unsigned int channels, rate, format;

Need to delete this line, as these variables won't be used any longer.

sound/usb/pcm.c: In function ‘snd_usb_hw_params’:
sound/usb/pcm.c:494:31: warning: unused variable ‘format’ [-Wunused-variable]
sound/usb/pcm.c:494:15: warning: unused variable ‘channels’ [-Wunused-variable]
sound/usb/pcm.c:509:15: warning: ‘rate’ may be used uninitialized in this function [-Wuninitialized]



Takashi


More information about the Alsa-devel mailing list