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

Commit 35f75696 authored by Felipe Balbi's avatar Felipe Balbi
Browse files

usb: dwc3: ep0: drop unnecessary variable



When returning from ep0_queue, we have an
unnecessary ret variable which is always
zero. Remove it.

Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 4b345c9a
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -125,7 +125,6 @@ static int __dwc3_gadget_ep0_queue(struct dwc3_ep *dep,
		struct dwc3_request *req)
{
	struct dwc3		*dwc = dep->dwc;
	int			ret = 0;

	req->request.actual	= 0;
	req->request.status	= -EINPROGRESS;
@@ -165,7 +164,7 @@ static int __dwc3_gadget_ep0_queue(struct dwc3_ep *dep,
			dev_dbg(dwc->dev, "too early for delayed status\n");
	}

	return ret;
	return 0;
}

int dwc3_gadget_ep0_queue(struct usb_ep *ep, struct usb_request *request,