Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 45438a0c authored by Felipe Balbi's avatar Felipe Balbi
Browse files

usb: dwc3: gadget: simplify dwc3_ep_prev_trb()



We always need to decrement our index by at least
one. Simplify the implementation by using a
temporary local variable and making sure that we
will always decrement one extra if tmp == 0.

Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 737f1ae2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment