From: Felipe Balbi Date: Thu, 29 Mar 2018 11:49:36 +0000 (+0300) Subject: usb: dwc3: gadget: remove unnecessary 'chain' variable X-Git-Tag: v4.18-rc1~136^2~81^2~37 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=cf35fc336e668fcac6dc981eac9f7646859ba601;p=linux.git usb: dwc3: gadget: remove unnecessary 'chain' variable Minor cleanup, no functional changes. Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 7a9586631895..baf89134604a 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/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) { 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