summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/udc/bdc/bdc_ep.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2014-11-25 18:56:22 +0300
committerFelipe Balbi <balbi@ti.com>2015-01-12 21:13:26 +0300
commitd71b0d7764a7b018bf73ae44f67dc8545e614eef (patch)
tree0c26c83bd5e30f8fb8838a97f3c65a386ac03f3a /drivers/usb/gadget/udc/bdc/bdc_ep.c
parent5e841efef7543209c1d62526311fbbcf85f3613d (diff)
downloadlinux-d71b0d7764a7b018bf73ae44f67dc8545e614eef.tar.xz
usb: gadget: udc: remove bogus NULL check
"ep" isn't NULL here, and static checkers complain because we dereferenced it on the previous line. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/udc/bdc/bdc_ep.c')
-rw-r--r--drivers/usb/gadget/udc/bdc/bdc_ep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/udc/bdc/bdc_ep.c b/drivers/usb/gadget/udc/bdc/bdc_ep.c
index ebf82bd050cf..fdc0e9fc39d0 100644
--- a/drivers/usb/gadget/udc/bdc/bdc_ep.c
+++ b/drivers/usb/gadget/udc/bdc/bdc_ep.c
@@ -719,7 +719,7 @@ static int ep_queue(struct bdc_ep *ep, struct bdc_req *req)
int ret = 0;
bdc = ep->bdc;
- if (!req || !ep || !ep->usb_ep.desc)
+ if (!req || !ep->usb_ep.desc)
return -EINVAL;
req->usb_req.actual = 0;