Skip to content

Commit

Permalink
ALSA: usb-audio: sound/usb/endpoint.c: suppress warning
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
akpm00 authored and tiwai committed Apr 24, 2012
1 parent baba2e0 commit 68853fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/usb/endpoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 68853fa

Please sign in to comment.