Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8d540ea7 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki
Browse files

cpufreq: Drop redundant check from cpufreq_update_current_freq()



Both callers of cpufreq_update_current_freq(), cpufreq_update_policy()
and cpufreq_start_governor(), check cpufreq_suspended before calling
that function, so drop the redundant cpufreq_suspended check from it.

Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent 5d1191ab
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -1544,9 +1544,6 @@ static unsigned int cpufreq_update_current_freq(struct cpufreq_policy *policy)
{
	unsigned int new_freq;

	if (cpufreq_suspended)
		return 0;

	new_freq = cpufreq_driver->get(policy->cpu);
	if (!new_freq)
		return 0;