From: Manivannan Sadhasivam Date: Tue, 25 Oct 2022 07:32:50 +0000 (+0530) Subject: cpufreq: qcom-hw: Remove un-necessary cpumask_empty() check X-Git-Tag: v6.6.17~6022^2~3^2~3^2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=68069b0d458bb06541641a294c15e06c5704ec2b;p=platform%2Fkernel%2Flinux-rpi.git cpufreq: qcom-hw: Remove un-necessary cpumask_empty() check CPUFreq core will always set the "policy->cpus" bitmask with the bitfield of the CPU that goes first per domain/policy. So there is no way the "policy->cpus" bitmask will be empty during qcom_cpufreq_hw_cpu_init(). Signed-off-by: Manivannan Sadhasivam Signed-off-by: Viresh Kumar --- diff --git a/drivers/cpufreq/qcom-cpufreq-hw.c b/drivers/cpufreq/qcom-cpufreq-hw.c index 833589b..61850d7 100644 --- a/drivers/cpufreq/qcom-cpufreq-hw.c +++ b/drivers/cpufreq/qcom-cpufreq-hw.c @@ -566,11 +566,6 @@ static int qcom_cpufreq_hw_cpu_init(struct cpufreq_policy *policy) data->per_core_dcvs = true; qcom_get_related_cpus(index, policy->cpus); - if (cpumask_empty(policy->cpus)) { - dev_err(dev, "Domain-%d failed to get related CPUs\n", index); - ret = -ENOENT; - goto error; - } policy->driver_data = data; policy->dvfs_possible_from_any_cpu = true;