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:
Oliver Neukum 2022-05-12 14:41:41 +01:00 committed by Mauro Carvalho Chehab
parent d040f0e78a
commit 07456325a3
1 changed files with 0 additions and 2 deletions

View File

@ -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: