summaryrefslogtreecommitdiff
path: root/kernel/sysctl_binary.c
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2019-09-26 23:14:04 -0700
committerMichael Bestas <mkbestas@lineageos.org>2020-02-02 01:41:00 +0200
commite888051ea71eea569dcfd0445bbd672585a39041 (patch)
tree183e40acf5eeb75778cfa11864ae29b73b8b4508 /kernel/sysctl_binary.c
parentf39174dec367a539af7ce90323e9121d68862ff0 (diff)
power: supply: qcom: Remove useless NULL checks against thresh array in msm_bcl_enable
Clang warns: ../drivers/power/supply/qcom/msm_bcl.c:230:42: warning: address of array 'bcl[BCL_PARAM_VOLTAGE]->thresh' will always evaluate to 'true' [-Wpointer-bool-conversion] if (!bcl[i] || !bcl[BCL_PARAM_VOLTAGE]->thresh ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ ../drivers/power/supply/qcom/msm_bcl.c:231:31: warning: address of array 'bcl[BCL_PARAM_CURRENT]->thresh' will always evaluate to 'true' [-Wpointer-bool-conversion] || !bcl[BCL_PARAM_CURRENT]->thresh) { ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ 2 warnings generated. Fixes: 77dd35597191 ("qpnp: Add snapshot of some qpnp, regulator and charger drivers") Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Diffstat (limited to 'kernel/sysctl_binary.c')
0 files changed, 0 insertions, 0 deletions