usb: dwc3: gadget: Simplify skipping of link TRBs
authorJohn Youn <johnyoun@synopsys.com>
Fri, 20 May 2016 00:26:05 +0000 (17:26 -0700)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 20 Jun 2016 09:32:43 +0000 (12:32 +0300)
commitdca0119c3ab69fea2429ec2db7e3686614bd1439
tree7608650796fc11fa79c3d796bd458585ad182187
parent96bedb637a1e1ad8e7ed781fa020550aae2a8f16
usb: dwc3: gadget: Simplify skipping of link TRBs

Make the skipping of the link TRBS built-in to the increment operation.
This simplifies the code wherever we increment the trb index and ensures
that we never end up pointing to a link trb.

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