summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-08-04 14:57:39 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-08-08 17:09:02 +0200
commitd6344d4b5628052ccda104466e5e05b9c43d7b61 (patch)
tree28ee64352eb261fe6e48c621cd7cbbe78f14a7de /include
parent99d14d0e16fadb4de001bacc0ac0786a9ebecf2a (diff)
downloadlinux-d6344d4b5628052ccda104466e5e05b9c43d7b61.tar.gz
linux-d6344d4b5628052ccda104466e5e05b9c43d7b61.tar.bz2
linux-d6344d4b5628052ccda104466e5e05b9c43d7b61.zip
cpufreq: Simplify cpufreq_can_do_remote_dvfs()
The if () in cpufreq_can_do_remote_dvfs() is superfluous, so drop it and simply return the value of the expression under it. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/cpufreq.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h
index 1981a4a167ce..d69464139f67 100644
--- a/include/linux/cpufreq.h
+++ b/include/linux/cpufreq.h
@@ -578,11 +578,8 @@ static inline bool cpufreq_can_do_remote_dvfs(struct cpufreq_policy *policy)
* - dvfs_possible_from_any_cpu flag is set
* - the local and remote CPUs share cpufreq policy
*/
- if (policy->dvfs_possible_from_any_cpu ||
- cpumask_test_cpu(smp_processor_id(), policy->cpus))
- return true;
-
- return false;
+ return policy->dvfs_possible_from_any_cpu ||
+ cpumask_test_cpu(smp_processor_id(), policy->cpus);
}
/*********************************************************************