summaryrefslogtreecommitdiff
path: root/drivers/firmware/qcom_scm.c
diff options
context:
space:
mode:
authorJunlin Yang <yangjunlin@yulong.com>2021-03-11 04:32:35 +0300
committerBjorn Andersson <bjorn.andersson@linaro.org>2021-07-17 07:48:41 +0300
commitd775dab9a4a8f1279b65a80a445753a569338319 (patch)
tree8c4095419e760d1eff235104d45b5578269e81b0 /drivers/firmware/qcom_scm.c
parent6bc45428635d693ebe3341a331dd8475748f4796 (diff)
downloadlinux-d775dab9a4a8f1279b65a80a445753a569338319.tar.xz
firmware: qcom_scm: remove a duplicative condition
Fixes coccicheck warnings: ./drivers/firmware/qcom_scm.c:324:20-22: WARNING !A || A && B is equivalent to !A || B Signed-off-by: Junlin Yang <yangjunlin@yulong.com> Link: https://lore.kernel.org/r/20210311013235.1458-1-angkery@163.com Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'drivers/firmware/qcom_scm.c')
-rw-r--r--drivers/firmware/qcom_scm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/qcom_scm.c b/drivers/firmware/qcom_scm.c
index 33db4a65c2b2..76bfa7ac2818 100644
--- a/drivers/firmware/qcom_scm.c
+++ b/drivers/firmware/qcom_scm.c
@@ -331,7 +331,7 @@ int qcom_scm_set_cold_boot_addr(void *entry, const cpumask_t *cpus)
.owner = ARM_SMCCC_OWNER_SIP,
};
- if (!cpus || (cpus && cpumask_empty(cpus)))
+ if (!cpus || cpumask_empty(cpus))
return -EINVAL;
for_each_cpu(cpu, cpus) {