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

Commit 7be9cd7f authored by Trilok Soni's avatar Trilok Soni
Browse files

usb: phy: msm: Fix the compilation error with GCC 5.1



gcc 5.1 has -wbool-compare option which detected the code
in the usb phy driver doing the wrong comparision because
the code was missing the proper parenthesis and could
result into the phy->state always becoming the
boolean value Vs the enum value it supposed to be
while checking it in the if condition.

Following was the warning for reference:

phy-msm-usb.c:1392:19: warning: comparison of constant '3' with boolean expression is always false [-Wbool-compare]

However this is due to typo in code that got introduced by
commit 2370d3bb ("USB: phy: msm: Remove ACA and SRP, HNP
related code")

Change-Id: I63a78f7cab88ff0ac6fcfd02ca865d626ebaf482
Signed-off-by: default avatarTrilok Soni <tsoni@codeaurora.org>
Signed-off-by: default avatarManu Gautam <mgautam@codeaurora.org>
parent 46d4e4a5
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