usb: dwc3: fix post-increment
authorJanusz Dziedzic <januszx.dziedzic@linux.intel.com>
Wed, 9 Nov 2016 10:01:33 +0000 (11:01 +0100)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 18 Nov 2016 11:54:14 +0000 (13:54 +0200)
commite3aee48692ac063fbb568bcf36a5a0e37c62079a
tree1b8d89afd4bde8e569e4cc53567e1b56f4fa218d
parentce3fc8b32994e16f69912c982823105aafead7a6
usb: dwc3: fix post-increment

Use pre-increment and set -ETIMEDOUT correctly.

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