OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d040f0e
)
media: ttusbir: avoid unnecessary usb_unlink_urb()
author
Oliver Neukum
<oneukum@suse.com>
Thu, 12 May 2022 13:41:41 +0000
(14:41 +0100)
committer
Mauro 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
patch
|
blob
|
history
diff --git
a/drivers/media/rc/ttusbir.c
b/drivers/media/rc/ttusbir.c
index
a8009dc
..
560a26f
100644
(file)
--- a/
drivers/media/rc/ttusbir.c
+++ b/
drivers/media/rc/ttusbir.c
@@
-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: