summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorIdo Shayevitz <idos@codeaurora.org>2012-06-04 10:35:21 (GMT)
committerFelipe Balbi <balbi@ti.com>2012-06-04 15:15:45 (GMT)
commit1fa75972c7b9f165af102022aa0090fe0a3a6c16 (patch)
tree0898959d95dfa446acda0569268c5412f1499ae6 /drivers/usb
parentfc065a09524991a5138835c6499e895d6be14049 (diff)
downloadlinux-fsl-qoriq-1fa75972c7b9f165af102022aa0090fe0a3a6c16.tar.xz
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')
-rw-r--r--drivers/usb/gadget/fsl_udc_core.c2
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 2831685..7998418 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;