aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSyed Rameez Mustafa <rameezmustafa@codeaurora.org>2014-01-23 15:58:46 -0800
committerSyed Rameez Mustafa <rameezmustafa@codeaurora.org>2014-01-27 11:31:28 -0800
commite798f586a818b51bb7fbcf0eb8b87424aff700f0 (patch)
tree5ef5353fc8e86fd1b72475ea0a979bf2ef3456ed
parenta18f488cdf71d93facf583ec7319ef05c22d9927 (diff)
msm: cpufreq: Remove redundant check in cpu_set_freq
Recent code refactoring has led to the unintentional consequence of having redundant checks for the success of clk_set_rate. Remove the redundant check. Change-Id: I6cb7bdec15afb833519fac3232836ce9445cba48 Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
-rw-r--r--arch/arm/mach-msm/cpufreq.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/arm/mach-msm/cpufreq.c b/arch/arm/mach-msm/cpufreq.c
index f02a02d8b9d..4618cb8cde8 100644
--- a/arch/arm/mach-msm/cpufreq.c
+++ b/arch/arm/mach-msm/cpufreq.c
@@ -140,9 +140,6 @@ static int set_cpu_freq(struct cpufreq_policy *policy, unsigned int new_freq,
if (!ret) {
freq_index[policy->cpu] = index;
update_l2_bw(NULL);
- }
-
- if (!ret) {
trace_cpu_frequency_switch_end(policy->cpu);
cpufreq_notify_transition(policy, &freqs, CPUFREQ_POSTCHANGE);
}