diff options
author | Robert Baldyga <r.baldyga@samsung.com> | 2015-02-10 11:30:36 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-03-11 11:19:38 -0400 |
commit | f4e4f8dae3753685e577143e8116cbac52f13cc4 (patch) | |
tree | f03cbf9e320189b7cae78858031ac1b9600f2436 /drivers/usb/gadget/function | |
parent | fa84acf0f6142e7f35da785e25ee978518ff21ac (diff) |
usb: gadget: f_hid: remove unnecessary usb_ep_dequeue()
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>
Diffstat (limited to 'drivers/usb/gadget/function')
-rw-r--r-- | drivers/usb/gadget/function/f_hid.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/gadget/function/f_hid.c b/drivers/usb/gadget/function/f_hid.c index a2612fb79eff..13dfc9915b1d 100644 --- 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) | |||
908 | 908 | ||
909 | /* disable/free request and end point */ | 909 | /* disable/free request and end point */ |
910 | usb_ep_disable(hidg->in_ep); | 910 | usb_ep_disable(hidg->in_ep); |
911 | usb_ep_dequeue(hidg->in_ep, hidg->req); | ||
912 | kfree(hidg->req->buf); | 911 | kfree(hidg->req->buf); |
913 | usb_ep_free_request(hidg->in_ep, hidg->req); | 912 | usb_ep_free_request(hidg->in_ep, hidg->req); |
914 | 913 | ||