media: ttusbir: avoid unnecessary usb_unlink_urb()
authorOliver Neukum <oneukum@suse.com>
Thu, 12 May 2022 13:41:41 +0000 (14:41 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 20 Jun 2022 09:30:33 +0000 (10:30 +0100)
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>
drivers/media/rc/ttusbir.c

index a8009dc958be06f6d85079abb41d4bd5f5a5c0d8..560a26f3965cfc19d2f72f5756a39b9e7e466f39 100644 (file)
@@ -90,7 +90,6 @@ static void ttusbir_bulk_complete(struct urb *urb)
        case -ECONNRESET:
        case -ENOENT:
        case -ESHUTDOWN:
-               usb_unlink_urb(urb);
                return;
        case -EPIPE:
        default:
@@ -166,7 +165,6 @@ static void ttusbir_urb_complete(struct urb *urb)
        case -ECONNRESET:
        case -ENOENT:
        case -ESHUTDOWN:
-               usb_unlink_urb(urb);
                return;
        case -EPIPE:
        default: