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)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 21 Jun 2016 07:38:43 +0000 (10:38 +0300)
commitf2df679b6c556fd3b0b7ffafea170f1679086455
tree0500be613c0f89d593ea26ebdb4aad5da888640d
parentd807bdd02845d53047346a4ba6d8934597fba6d6
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.

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