Skip to content

Commit d6344d4

Browse files
committed
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 <[email protected]> Acked-by: Viresh Kumar <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 99d14d0 commit d6344d4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

include/linux/cpufreq.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -578,11 +578,8 @@ static inline bool cpufreq_can_do_remote_dvfs(struct cpufreq_policy *policy)
578578
* - dvfs_possible_from_any_cpu flag is set
579579
* - the local and remote CPUs share cpufreq policy
580580
*/
581-
if (policy->dvfs_possible_from_any_cpu ||
582-
cpumask_test_cpu(smp_processor_id(), policy->cpus))
583-
return true;
584-
585-
return false;
581+
return policy->dvfs_possible_from_any_cpu ||
582+
cpumask_test_cpu(smp_processor_id(), policy->cpus);
586583
}
587584

588585
/*********************************************************************

0 commit comments

Comments
 (0)