UPSTREAM: usb: dwc3: gadget: avoid while(1) in run_stop()
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 9 Jun 2016 13:31:34 +0000 (16:31 +0300)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 16 Aug 2016 12:48:19 +0000 (20:48 +0800)
commitd7824564eb094b81a907ca6e052dec326bb1059a
tree70363135dd57ec70daf9a090ce60e05c12447ccd
parent74069572234d0c7f1b3e8d92eb43660a54ed89c8
UPSTREAM: usb: dwc3: gadget: avoid while(1) in run_stop()

instead of looping forever and forcing a return if
timeout reaches zero, we can just use timeout and
loop's break condition directly.

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