summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorIdo Shayevitz <idos@codeaurora.org>2012-06-04 13:35:26 +0300
committerFelipe Balbi <balbi@ti.com>2012-06-04 18:15:47 +0300
commit3ba0b31aed94167998defadfbf17d2196db05814 (patch)
treef02b26aad6e43319ad1265727c59022ed9efd17d /drivers/usb
parent77964b3ce862262e4a22d4e5093c158f72439a0b (diff)
downloadblackbird-op-linux-3ba0b31aed94167998defadfbf17d2196db05814.tar.gz
blackbird-op-linux-3ba0b31aed94167998defadfbf17d2196db05814.zip
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/gadget/pxa25x_udc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/pxa25x_udc.c b/drivers/usb/gadget/pxa25x_udc.c
index d7c8cb3bf759..f7ff9e8e746a 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)) {
OpenPOWER on IntegriCloud