From: Andrew Morton Date: Tue, 24 Apr 2012 06:10:10 +0000 (+0200) Subject: ALSA: usb-audio: sound/usb/endpoint.c: suppress warning X-Git-Tag: firefly_0821_release~3680^2~2691^2~7^2~19 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=68853fa30cdb6a9a92f7ab46c34aedb24b2f9d56;p=firefly-linux-kernel-4.4.55.git ALSA: usb-audio: sound/usb/endpoint.c: suppress warning 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 Signed-off-by: Andrew Morton Signed-off-by: Takashi Iwai --- diff --git a/sound/usb/endpoint.c b/sound/usb/endpoint.c index 12e5a951a143..83a36d0d2a2d 100644 --- a/sound/usb/endpoint.c +++ b/sound/usb/endpoint.c @@ -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;