media: ttusbir: avoid unnecessary usb_unlink_urb()
While the completion handler is running, usb_unlink_urb() on yourself is a NOP. Remove 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
d040f0e78a
commit
07456325a3
|
@ -90,7 +90,6 @@ static void ttusbir_bulk_complete(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:
|
||||||
|
@ -166,7 +165,6 @@ static void ttusbir_urb_complete(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:
|
||||||
|
|
Loading…
Reference in New Issue