forked from Minki/linux
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 <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
42f91fa116
commit
2e1cc3a5d7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user