diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2014-11-25 18:56:22 +0300 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-01-12 12:13:26 -0600 |
commit | d71b0d7764a7b018bf73ae44f67dc8545e614eef (patch) | |
tree | 0c26c83bd5e30f8fb8838a97f3c65a386ac03f3a /drivers | |
parent | 5e841efef7543209c1d62526311fbbcf85f3613d (diff) | |
download | linux-d71b0d7764a7b018bf73ae44f67dc8545e614eef.tar.bz2 |
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')
-rw-r--r-- | drivers/usb/gadget/udc/bdc/bdc_ep.c | 2 |
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; |