Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d71b0d77 authored by Dan Carpenter's avatar Dan Carpenter Committed by Felipe Balbi
Browse files

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 5e841efe
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;