OSDN Git Service

msm: thermal: Remove unnecessary parentheses in do_vdd_mx
authorNathan Chancellor <natechancellor@gmail.com>
Fri, 27 Sep 2019 06:45:03 +0000 (23:45 -0700)
committerNathan Chancellor <natechancellor@gmail.com>
Fri, 27 Sep 2019 07:42:39 +0000 (00:42 -0700)
commitfd9194c2875263d4852515aa1ab0d72ecdaef594
tree61238204fe13750b6b6aa48c8db1be72885ccf0e
parent86a0bed0810cae1bb105b6090c204ecd7f257837
msm: thermal: Remove unnecessary parentheses in do_vdd_mx

Clang warns:

../drivers/thermal/msm_thermal.c:2806:15: warning: equality comparison
with extraneous parentheses [-Wparentheses-equality]
        if ((dis_cnt == thresh[MSM_VDD_MX_RESTRICTION].thresh_ct)) {
             ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/thermal/msm_thermal.c:2806:15: note: remove extraneous
parentheses around the comparison to silence this warning
        if ((dis_cnt == thresh[MSM_VDD_MX_RESTRICTION].thresh_ct)) {
            ~        ^                                          ~
../drivers/thermal/msm_thermal.c:2806:15: note: use '=' to turn this
equality comparison into an assignment
        if ((dis_cnt == thresh[MSM_VDD_MX_RESTRICTION].thresh_ct)) {
                     ^~
                     =

Fixes: b68798fafa4e ("soc: qcom: Snapshot of thermal/LMH drivers")
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
drivers/thermal/msm_thermal.c