diff options
author | Ido Shayevitz <idos@codeaurora.org> | 2012-06-04 13:35:21 +0300 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-06-04 18:15:45 +0300 |
commit | 1fa75972c7b9f165af102022aa0090fe0a3a6c16 (patch) | |
tree | 0898959d95dfa446acda0569268c5412f1499ae6 /drivers/usb/gadget | |
parent | fc065a09524991a5138835c6499e895d6be14049 (diff) |
usb: gadget: fsl_udc_core: 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/gadget')
-rw-r--r-- | drivers/usb/gadget/fsl_udc_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/fsl_udc_core.c b/drivers/usb/gadget/fsl_udc_core.c index 28316858208b..799841821982 100644 --- a/drivers/usb/gadget/fsl_udc_core.c +++ b/drivers/usb/gadget/fsl_udc_core.c @@ -567,7 +567,7 @@ static int fsl_ep_enable(struct usb_ep *_ep, ep = container_of(_ep, struct fsl_ep, ep); /* catch various bogus parameters */ - if (!_ep || !desc || ep->ep.desc + if (!_ep || !desc || (desc->bDescriptorType != USB_DT_ENDPOINT)) return -EINVAL; |