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

Commit 407d0fff authored by Viresh Kumar's avatar Viresh Kumar Committed by Rafael J. Wysocki
Browse files

cpufreq: Remove redundant !setpolicy check



cpufreq_start_governor() is only called for !setpolicy case, checking it
again is not required.

Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent bcc61569
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2151,7 +2151,7 @@ static int cpufreq_start_governor(struct cpufreq_policy *policy)

	pr_debug("%s: for CPU %u\n", __func__, policy->cpu);

	if (cpufreq_driver->get && !cpufreq_driver->setpolicy)
	if (cpufreq_driver->get)
		cpufreq_update_current_freq(policy);

	if (policy->governor->start) {