diff options
author | Ido Shayevitz <idos@codeaurora.org> | 2012-06-04 13:35:25 +0300 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-06-04 18:15:47 +0300 |
commit | 77964b3ce862262e4a22d4e5093c158f72439a0b (patch) | |
tree | b5cb7c467edd3776ef7f11af79e42d0582ff1435 /drivers | |
parent | e0f4f9d4c9138c40738104f80bd5008517fc712d (diff) | |
download | op-kernel-dev-77964b3ce862262e4a22d4e5093c158f72439a0b.zip op-kernel-dev-77964b3ce862262e4a22d4e5093c158f72439a0b.tar.gz |
usb: gadget: omap_udc: Remove unneeded condition
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/gadget/omap_udc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/omap_udc.c b/drivers/usb/gadget/omap_udc.c index 7ba3246..a460e8c 100644 --- a/drivers/usb/gadget/omap_udc.c +++ b/drivers/usb/gadget/omap_udc.c @@ -153,7 +153,7 @@ static int omap_ep_enable(struct usb_ep *_ep, u16 maxp; /* catch various bogus parameters */ - if (!_ep || !desc || ep->ep.desc + if (!_ep || !desc || desc->bDescriptorType != USB_DT_ENDPOINT || ep->bEndpointAddress != desc->bEndpointAddress || ep->maxpacket < usb_endpoint_maxp(desc)) { |