From: Rafael J. Wysocki Date: Tue, 28 Jun 2016 01:31:02 +0000 (+0200) Subject: cpufreq: Drop redundant check from cpufreq_update_current_freq() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8d540ea79211dd272403ed79b2033bbded19ac42;p=openwrt%2Fstaging%2Fblogic.git 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: Rafael J. Wysocki Acked-by: Viresh Kumar --- diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 5918e954bb5d..118b4f30a406 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -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;