UPSTREAM: usb: dwc3: gadget: loop while (timeout)
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 23 May 2016 10:53:34 +0000 (13:53 +0300)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 16 Aug 2016 12:48:19 +0000 (20:48 +0800)
commitace9119cde4afca08ebc73c5cbf6fda72a0711a6
tree48185220fa7f94c1daa831cc076951b293b7803c
parent282c3a79e13a609d0acf7bf45598583edf18ee5f
UPSTREAM: 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.

Change-Id: I665d39e7205463f5f4439f3a6d4fdfc6e3ed67b2
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
(cherry picked from commit f6bb225bb3ca7988ff373c62cc298e56cae1eee5)
drivers/usb/dwc3/gadget.c