diff options
| author | Nathan Chancellor <natechancellor@gmail.com> | 2019-09-26 23:45:03 -0700 |
|---|---|---|
| committer | Michael Bestas <mkbestas@lineageos.org> | 2020-02-02 01:41:02 +0200 |
| commit | a17d1e1927264aafccdee1755a2067775ca46b01 (patch) | |
| tree | 95ab40125c5c5c4753f0fb3e23d7bb11f40f5226 /drivers/thermal | |
| parent | 722c2dfad791dfca2b0517b32930be75b69a6581 (diff) | |
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>
Diffstat (limited to 'drivers/thermal')
| -rw-r--r-- | drivers/thermal/msm_thermal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/msm_thermal.c b/drivers/thermal/msm_thermal.c index 9f47a1986f85..b05a51c1c31f 100644 --- a/drivers/thermal/msm_thermal.c +++ b/drivers/thermal/msm_thermal.c @@ -2803,7 +2803,7 @@ static int do_vdd_mx(void) } } - if ((dis_cnt == thresh[MSM_VDD_MX_RESTRICTION].thresh_ct)) { + if (dis_cnt == thresh[MSM_VDD_MX_RESTRICTION].thresh_ct) { ret = remove_vdd_mx_restriction(); if (ret) pr_err("Failed to remove vdd mx restriction\n"); |
