mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 22:51:35 +00:00
media: iguanair: no superfluous usb_unlink_urb()
Unlinking yourself while the completion handler is running is a NOP. Drop it. Signed-off-by: Oliver Neukum <oneukum@suse.com> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
5e40290562
commit
0189ef8272
@ -149,10 +149,8 @@ static void iguanair_rx(struct urb *urb)
|
||||
return;
|
||||
|
||||
ir = urb->context;
|
||||
if (!ir) {
|
||||
usb_unlink_urb(urb);
|
||||
if (!ir)
|
||||
return;
|
||||
}
|
||||
|
||||
switch (urb->status) {
|
||||
case 0:
|
||||
@ -161,7 +159,6 @@ static void iguanair_rx(struct urb *urb)
|
||||
case -ECONNRESET:
|
||||
case -ENOENT:
|
||||
case -ESHUTDOWN:
|
||||
usb_unlink_urb(urb);
|
||||
return;
|
||||
case -EPIPE:
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user