mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
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>
This commit is contained in:
parent
ce3fc8b329
commit
e3aee48692
1 changed files with 1 additions and 1 deletions
|
|
@ -214,7 +214,7 @@ int dwc3_send_gadget_generic_command(struct dwc3 *dwc, unsigned cmd, u32 param)
|
|||
ret = -EINVAL;
|
||||
break;
|
||||
}
|
||||
} while (timeout--);
|
||||
} while (--timeout);
|
||||
|
||||
if (!timeout) {
|
||||
ret = -ETIMEDOUT;
|
||||
|
|
|
|||
Loading…
Reference in a new issue