From: Rafael J. Wysocki Date: Fri, 4 Aug 2017 12:57:39 +0000 (+0200) Subject: cpufreq: Simplify cpufreq_can_do_remote_dvfs() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d6344d4b5628052ccda104466e5e05b9c43d7b61;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Viresh Kumar Signed-off-by: Rafael J. Wysocki --- 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); } /*********************************************************************