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

Commit fee73e61 authored by Felipe Balbi's avatar Felipe Balbi
Browse files

usb: dwc3: gadget: reduce scope of ret variable



We can declare it inside list_for_each_entry_safe() loop and reduce
its scope.

Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 6afbdb57
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2313,10 +2313,10 @@ static void dwc3_gadget_ep_cleanup_completed_requests(struct dwc3_ep *dep,
{
	struct dwc3_request	*req;
	struct dwc3_request	*tmp;
	int			ret = 0;

	list_for_each_entry_safe(req, tmp, &dep->started_list, list) {
		unsigned length;
		int ret;

		length = req->request.length;
		if (req->num_pending_sgs)