summaryrefslogtreecommitdiff
path: root/drivers/cpufreq
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2019-06-20 08:35:46 +0530
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2019-06-26 11:36:55 +0200
commit407d0fff22667598fe3602965f0e0bf78dabdca5 (patch)
tree3842f751a0ec51284f3f8c9b4db2c3802ce9a7ca /drivers/cpufreq
parentbcc61569997b2188ba89db43b5b991da01ea2d18 (diff)
cpufreq: Remove redundant !setpolicy check
cpufreq_start_governor() is only called for !setpolicy case, checking it again is not required. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r--drivers/cpufreq/cpufreq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
index aee024e42618..8caec5211726 100644
--- a/drivers/cpufreq/cpufreq.c
+++ b/drivers/cpufreq/cpufreq.c
@@ -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) {