usb: phy: qmp: Fix bug in initialization timeout check
The while loop will keep checking the PHY status until it is cleared,
or until the timeout counter hits 0. But in the latter case the
post-decrement will additionally decrement it to (unsigned)-1, and
the following if check will miss it. Fix this silly bug by
changing to pre-decrement.
Change-Id: I613a7f48b2ce1fd906207f7ac32b2254f036db6f
Signed-off-by:
Jack Pham <jackp@codeaurora.org>
Loading
Please register or sign in to comment