From: Viresh Kumar Date: Fri, 2 Jan 2015 07:04:27 +0000 (+0530) Subject: cpufreq: No need to check for has_target() X-Git-Tag: v4.0-rc1~9^2^4~40 X-Git-Url: http://git.cascardo.info/?a=commitdiff_plain;h=2e1cc3a5d7efa42d3aa4aaa77b9b2c3a51bb6073;hp=42f91fa1166f1d6c9fba37f167dd3c3f846be00a;p=cascardo%2Flinux.git cpufreq: No need to check for has_target() Either we can be setpolicy or target type, nothing else. And so the else part of setpolicy will automatically be of has_target() type. And so we don't need to check it again. Signed-off-by: Viresh Kumar Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index faffdaaba343..1454ab3f0023 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -464,7 +464,7 @@ static int cpufreq_parse_governor(char *str_governor, unsigned int *policy, *policy = CPUFREQ_POLICY_POWERSAVE; err = 0; } - } else if (has_target()) { + } else { struct cpufreq_governor *t; mutex_lock(&cpufreq_governor_mutex);