projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa84acf
)
usb: gadget: f_hid: remove unnecessary usb_ep_dequeue()
author
Robert Baldyga
<r.baldyga@samsung.com>
Tue, 10 Feb 2015 16:30:36 +0000
(17:30 +0100)
committer
Felipe Balbi
<balbi@ti.com>
Wed, 11 Mar 2015 15:19:38 +0000
(10:19 -0500)
Function usb_ep_disable() causes completion of all requests queued
for given endpoint, so there is no need to dequeue them after endpoint
disabling.
Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/function/f_hid.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/gadget/function/f_hid.c
b/drivers/usb/gadget/function/f_hid.c
index a2612fb79eff261ee336b73940f88e7514f9c5e0..13dfc9915b1dee679b89f83a19ab3ef56641ae34 100644
(file)
--- a/
drivers/usb/gadget/function/f_hid.c
+++ b/
drivers/usb/gadget/function/f_hid.c
@@
-908,7
+908,6
@@
static void hidg_unbind(struct usb_configuration *c, struct usb_function *f)
/* disable/free request and end point */
usb_ep_disable(hidg->in_ep);
- usb_ep_dequeue(hidg->in_ep, hidg->req);
kfree(hidg->req->buf);
usb_ep_free_request(hidg->in_ep, hidg->req);