summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2012-04-24 08:10:10 +0200
committerTakashi Iwai <tiwai@suse.de>2012-04-24 08:10:10 +0200
commit68853fa30cdb6a9a92f7ab46c34aedb24b2f9d56 (patch)
tree4faa6871f7a7cdfb28c7584eb93dda9a1646965e /sound
parentbaba2e0d2bf5d68e4ec0d8a4d700724ef866249f (diff)
downloadop-kernel-dev-68853fa30cdb6a9a92f7ab46c34aedb24b2f9d56.zip
op-kernel-dev-68853fa30cdb6a9a92f7ab46c34aedb24b2f9d56.tar.gz
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 <zonque@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/usb/endpoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/endpoint.c b/sound/usb/endpoint.c
index 12e5a95..83a36d0 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;
OpenPOWER on IntegriCloud