ALSA: usb-audio: sound/usb/endpoint.c: suppress warning
authorAndrew Morton <akpm@linux-foundation.org>
Tue, 24 Apr 2012 06:10:10 +0000 (08:10 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 24 Apr 2012 06:10:10 +0000 (08:10 +0200)
sound/usb/endpoint.c: In function 'queue_pending_output_urbs':
sound/usb/endpoint.c:298: warning: 'packet' may be used uninitialized in this function

Cc: Daniel Mack <zonque@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/endpoint.c

index 12e5a951a143fa9ee091ac98c4989470ea468ccb..83a36d0d2a2dc115d96db334d1accd7c299c6b5b 100644 (file)
@@ -295,7 +295,7 @@ static void queue_pending_output_urbs(struct snd_usb_endpoint *ep)
        while (test_bit(EP_FLAG_RUNNING, &ep->flags)) {
 
                unsigned long flags;
-               struct snd_usb_packet_info *packet;
+               struct snd_usb_packet_info *uninitialized_var(packet);
                struct snd_urb_ctx *ctx = NULL;
                struct urb *urb;
                int err, i;