summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-08-01 11:47:41 +0100
committerTakashi Iwai <tiwai@suse.de>2018-08-01 14:00:32 +0200
commitd36455a38ed82e7d1e6807573935874f0b279f45 (patch)
tree4b20f5a4d0544d5e2573c37bd0f6893aa395229d
parent0d00085b905c904d6de4296aa6a1e3613d0a4d67 (diff)
downloadop-kernel-dev-d36455a38ed82e7d1e6807573935874f0b279f45.zip
op-kernel-dev-d36455a38ed82e7d1e6807573935874f0b279f45.tar.gz
ALSA: usb-audio: remove redundant pointer 'urb'
Pointer 'urb' is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: warning: variable 'urb' set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/usb/endpoint.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/usb/endpoint.c b/sound/usb/endpoint.c
index c90607e..d86be8b 100644
--- a/sound/usb/endpoint.c
+++ b/sound/usb/endpoint.c
@@ -325,7 +325,6 @@ static void queue_pending_output_urbs(struct snd_usb_endpoint *ep)
unsigned long flags;
struct snd_usb_packet_info *uninitialized_var(packet);
struct snd_urb_ctx *ctx = NULL;
- struct urb *urb;
int err, i;
spin_lock_irqsave(&ep->lock, flags);
@@ -345,7 +344,6 @@ static void queue_pending_output_urbs(struct snd_usb_endpoint *ep)
return;
list_del_init(&ctx->ready_list);
- urb = ctx->urb;
/* copy over the length information */
for (i = 0; i < packet->packets; i++)
OpenPOWER on IntegriCloud