All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFT/PATCH,24/38] usb: dwc3: gadget: remove unnecessary 'chain' variable
@ 2018-04-09 11:26 Felipe Balbi
  0 siblings, 0 replies; only message in thread
From: Felipe Balbi @ 2018-04-09 11:26 UTC (permalink / raw)
  To: Linux USB; +Cc: Felipe Balbi

Minor cleanup, no functional changes.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
---
 drivers/usb/dwc3/gadget.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
index e4bd902a1e76..63e74a8964d7 100644
--- a/drivers/usb/dwc3/gadget.c
+++ b/drivers/usb/dwc3/gadget.c
@@ -2294,11 +2294,9 @@ static void dwc3_gadget_ep_cleanup_completed_requests(struct dwc3_ep *dep,
 
 	list_for_each_entry_safe(req, n, &dep->started_list, list) {
 		unsigned length;
-		int chain;
 
 		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,
 					status);
 		else

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-04-09 11:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-09 11:26 [RFT/PATCH,24/38] usb: dwc3: gadget: remove unnecessary 'chain' variable Felipe Balbi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.