usb: dwc3: gadget: use num_trbs when skipping TRBs on ->dequeue()
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Wed, 1 Aug 2018 10:37:53 +0000 (13:37 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 26 Nov 2018 07:08:29 +0000 (09:08 +0200)
commitc3acd59014148470dc58519870fbc779785b4bf7
tree63630bac769bc1d17702a92fe5aa6540936ac090
parent09fe1f8d7e2f461275b1cdd832f2cfa5e9be346d
usb: dwc3: gadget: use num_trbs when skipping TRBs on ->dequeue()

Now that we track how many TRBs a request uses, it's easier to skip
over them in case of a call to usb_ep_dequeue(). Let's do so and
simplify the code a bit.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/gadget.c