projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ba0b31
)
usb: gadget: s3c2410_udc: Remove unneeded condition
author
Ido Shayevitz
<idos@codeaurora.org>
Mon, 4 Jun 2012 10:35:27 +0000
(13:35 +0300)
committer
Felipe Balbi
<balbi@ti.com>
Mon, 4 Jun 2012 15:15:48 +0000
(18:15 +0300)
The removed condition is always true, since the endpoint descriptor is
set prior to calling the enable endpoint.
Signed-off-by: Ido Shayevitz <idos@codeaurora.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/s3c2410_udc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/gadget/s3c2410_udc.c
b/drivers/usb/gadget/s3c2410_udc.c
index 3de71d37d75e209787f2dfaa0e783f8952808527..f2e51f50e528d8b532d7fcac3558c58e8554f382 100644
(file)
--- a/
drivers/usb/gadget/s3c2410_udc.c
+++ b/
drivers/usb/gadget/s3c2410_udc.c
@@
-1062,7
+1062,7
@@
static int s3c2410_udc_ep_enable(struct usb_ep *_ep,
ep = to_s3c2410_ep(_ep);
- if (!_ep || !desc
|| ep->ep.desc
+ if (!_ep || !desc
|| _ep->name == ep0name
|| desc->bDescriptorType != USB_DT_ENDPOINT)
return -EINVAL;