From: Viresh Kumar Date: Thu, 20 Jun 2019 03:05:46 +0000 (+0530) Subject: cpufreq: Remove redundant !setpolicy check X-Git-Tag: rel_imx_5.10.35_2.0.0-somdevices.0~4230^2^2~13 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=407d0fff22667598fe3602965f0e0bf78dabdca5;p=linux.git 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 Signed-off-by: Rafael J. Wysocki --- 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) {