Commit 0189ef82 authored by Oliver Neukum's avatar Oliver Neukum Committed by Mauro Carvalho Chehab

media: iguanair: no superfluous usb_unlink_urb()

Unlinking yourself while the completion handler
is running is a NOP. Drop it.
Signed-off-by: default avatarOliver Neukum <oneukum@suse.com>
Signed-off-by: default avatarSean Young <sean@mess.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 5e402905
...@@ -149,10 +149,8 @@ static void iguanair_rx(struct urb *urb) ...@@ -149,10 +149,8 @@ static void iguanair_rx(struct urb *urb)
return; return;
ir = urb->context; ir = urb->context;
if (!ir) { if (!ir)
usb_unlink_urb(urb);
return; return;
}
switch (urb->status) { switch (urb->status) {
case 0: case 0:
...@@ -161,7 +159,6 @@ static void iguanair_rx(struct urb *urb) ...@@ -161,7 +159,6 @@ static void iguanair_rx(struct urb *urb)
case -ECONNRESET: case -ECONNRESET:
case -ENOENT: case -ENOENT:
case -ESHUTDOWN: case -ESHUTDOWN:
usb_unlink_urb(urb);
return; return;
case -EPIPE: case -EPIPE:
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment