diff options
author | Felipe Balbi <felipe.balbi@linux.intel.com> | 2018-03-29 13:25:40 +0300 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2018-05-21 10:00:54 +0300 |
commit | d5044a04b5292d3ac6c837af70d632a7d593f6db (patch) | |
tree | 83d989b7e67b5066729fd237e59916d54e082cd2 /drivers/usb/dwc3 | |
parent | fe990cea8ed5563af1f3e646d2d06c6c93c0399d (diff) | |
download | linux-d5044a04b5292d3ac6c837af70d632a7d593f6db.tar.xz |
usb: dwc3: gadget: simplify isoc case on cleanup_completed_requests
Just a minor simplification, no functional changes.
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r-- | drivers/usb/dwc3/gadget.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index ffa84e04488c..2c79563caa33 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -2351,16 +2351,9 @@ static void dwc3_gadget_ep_cleanup_completed_requests(struct dwc3_ep *dep, return; if (usb_endpoint_xfer_isoc(dep->endpoint.desc) && - list_empty(&dep->started_list)) { - if (list_empty(&dep->pending_list)) { - /* - * If there is no entry in request list then do - * not issue END TRANSFER now. Just set PENDING - * flag, so that END TRANSFER is issued when an - * entry is added into request list. - */ - dep->flags = DWC3_EP_PENDING_REQUEST; - } + list_empty(&dep->started_list) && + list_empty(&dep->pending_list)) { + dep->flags = DWC3_EP_PENDING_REQUEST; } } |