diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-01-02 02:04:27 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-01-23 16:49:34 -0500 |
commit | 2e1cc3a5d7efa42d3aa4aaa77b9b2c3a51bb6073 (patch) | |
tree | 773d4aef74ddf411b39a00ebb77f6494d83ad2ec | |
parent | 42f91fa1166f1d6c9fba37f167dd3c3f846be00a (diff) |
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>
-rw-r--r-- | drivers/cpufreq/cpufreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
464 | *policy = CPUFREQ_POLICY_POWERSAVE; | 464 | *policy = CPUFREQ_POLICY_POWERSAVE; |
465 | err = 0; | 465 | err = 0; |
466 | } | 466 | } |
467 | } else if (has_target()) { | 467 | } else { |
468 | struct cpufreq_governor *t; | 468 | struct cpufreq_governor *t; |
469 | 469 | ||
470 | mutex_lock(&cpufreq_governor_mutex); | 470 | mutex_lock(&cpufreq_governor_mutex); |