usb: dwc3: gadget: loop while (timeout)
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 23 May 2016 10:53:34 +0000 (13:53 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 20 Jun 2016 09:32:40 +0000 (12:32 +0300)
commitf6bb225bb3ca7988ff373c62cc298e56cae1eee5
tree0a349c83a4e98f1bda5d7c3eec20efd033867514
parentba1598410eff646e10be4e42d773e5bdc511d898
usb: dwc3: gadget: loop while (timeout)

instead of having infinite loop and always checking
timeout value as a break condition, we can just
decrement timeout inside while's condition.

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