summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/u_f.c
diff options
context:
space:
mode:
authorFelipe F. Tonello <eu@felipetonello.com>2015-11-10 17:52:05 +0000
committerFelipe Balbi <balbi@ti.com>2015-12-15 09:12:41 -0600
commit079fe5a6da616891cca1a26e803e1df2a87e9ae5 (patch)
tree8de7bad5ce23cdc9837c8c697b608bc8533c909f /drivers/usb/gadget/u_f.c
parentbc1d3cdc9c3cbbd9040da8c53237e177c38048b0 (diff)
downloadlinux-079fe5a6da616891cca1a26e803e1df2a87e9ae5.tar.bz2
usb: gadget: define free_ep_req as universal function
This function is shared between gadget functions, so this avoid unnecessary duplicated code and potentially avoid memory leaks. Reviewed-by: Robert Baldyga <r.baldyga@samsung.com> Signed-off-by: Felipe F. Tonello <eu@felipetonello.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/u_f.c')
-rw-r--r--drivers/usb/gadget/u_f.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/gadget/u_f.c b/drivers/usb/gadget/u_f.c
index c6276f0268ae..4bc7eea8bfc8 100644
--- a/drivers/usb/gadget/u_f.c
+++ b/drivers/usb/gadget/u_f.c
@@ -11,7 +11,6 @@
* published by the Free Software Foundation.
*/
-#include <linux/usb/gadget.h>
#include "u_f.h"
struct usb_request *alloc_ep_req(struct usb_ep *ep, int len, int default_len)