Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
usb: dwc3: gadget: check for empty started_list after cleaning comple…
…ted requests The code in dwc3_gadget_endpoint_transfer_in_progress() checks for the empty value in started_list before cleaning up the complted requests. Since the present working request is not yet cleaned from started_list, the list_empty(started_list) always returns non-empty. This patch corrects the code by moving the list_empty(started_list) check after calling dwc3_gadget_ep_cleanup_completed_requests() Signed-off-by: Anurag Kumar Vulisha <anurag.kumar.vulisha@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
- Loading branch information