From: Dan Carpenter Date: Tue, 25 Nov 2014 15:56:22 +0000 (+0300) Subject: usb: gadget: udc: remove bogus NULL check X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d71b0d7764a7b018bf73ae44f67dc8545e614eef;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Felipe Balbi --- 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;