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

Dylan Reid dgreid at chromium.org
Tue Sep 18 18:41:17 CEST 2012


On Tue, Sep 18, 2012 at 5:47 AM, Takashi Iwai <tiwai at suse.de> wrote:
> 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]

Sorry about that, thanks for catching it, I'll send an updated series.

>
>
>
> Takashi


More information about the Alsa-devel mailing list