]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
soc: qcom: pdr: Remove impossible error condition
authorSibi Sankar <sibis@codeaurora.org>
Wed, 15 Apr 2020 06:29:55 +0000 (11:59 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 21 Apr 2020 06:57:58 +0000 (23:57 -0700)
commit02d8ecc18b8f392389ac9e7b785b0230ecb80833
tree3bb40198580edae965bf0addd0638ec6b42e4969
parent35bb4b22f606c0cc8eedf567313adc18161b1af4
soc: qcom: pdr: Remove impossible error condition

The patch fbe639b44a82: "soc: qcom: Introduce Protection Domain
Restart helpers" leads to the following static checker warning:

drivers/soc/qcom/pdr_interface.c:158 pdr_register_listener()
'(resp.curr_state < (-((~0 >> 1)) - 1)) => (s32min-s32max < s32min)'
These are casted to int so they can't be outside of int range.

Fixes: fbe639b44a82 ("soc: qcom: Introduce Protection Domain Restart helpers")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Sibi Sankar <sibis@codeaurora.org>
Link: https://lore.kernel.org/r/20200415062955.21439-1-sibis@codeaurora.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/soc/qcom/pdr_interface.c