Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit d6ad77a7 authored by Jack Pham's avatar Jack Pham
Browse files

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: default avatarJack Pham <jackp@codeaurora.org>
parent d7b84769
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment