diff options
author | Ido Shayevitz <idos@codeaurora.org> | 2012-06-04 10:35:26 (GMT) |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-06-04 15:15:47 (GMT) |
commit | 3ba0b31aed94167998defadfbf17d2196db05814 (patch) | |
tree | f02b26aad6e43319ad1265727c59022ed9efd17d | |
parent | 77964b3ce862262e4a22d4e5093c158f72439a0b (diff) | |
download | linux-3ba0b31aed94167998defadfbf17d2196db05814.tar.xz |
usb: gadget: pxa25x_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>
-rw-r--r-- | drivers/usb/gadget/pxa25x_udc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/pxa25x_udc.c b/drivers/usb/gadget/pxa25x_udc.c index d7c8cb3..f7ff9e8 100644 --- a/drivers/usb/gadget/pxa25x_udc.c +++ b/drivers/usb/gadget/pxa25x_udc.c @@ -218,7 +218,7 @@ static int pxa25x_ep_enable (struct usb_ep *_ep, struct pxa25x_udc *dev; ep = container_of (_ep, struct pxa25x_ep, ep); - if (!_ep || !desc || ep->ep.desc || _ep->name == ep0name + if (!_ep || !desc || _ep->name == ep0name || desc->bDescriptorType != USB_DT_ENDPOINT || ep->bEndpointAddress != desc->bEndpointAddress || ep->fifo_size < usb_endpoint_maxp (desc)) { |