Explorar el Código

usb: dwc3: gadget: remove unnecessary 'chain' variable

Minor cleanup, no functional changes.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Felipe Balbi hace 7 años
padre
commit
cf35fc336e
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  1. 1 3
      drivers/usb/dwc3/gadget.c

+ 1 - 3
drivers/usb/dwc3/gadget.c

@@ -2319,11 +2319,9 @@ static void dwc3_gadget_ep_cleanup_completed_requests(struct dwc3_ep *dep,
 
 
 	list_for_each_entry_safe(req, n, &dep->started_list, list) {
 	list_for_each_entry_safe(req, n, &dep->started_list, list) {
 		unsigned length;
 		unsigned length;
-		int chain;
 
 
 		length = req->request.length;
 		length = req->request.length;
-		chain = req->num_pending_sgs > 0;
-		if (chain)
+		if (req->num_pending_sgs)
 			ret = dwc3_gadget_ep_reclaim_trb_sg(dep, req, event,
 			ret = dwc3_gadget_ep_reclaim_trb_sg(dep, req, event,
 					status);
 					status);
 		else
 		else