Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e798f586 authored by Syed Rameez Mustafa's avatar Syed Rameez Mustafa
Browse files

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: default avatarSyed Rameez Mustafa <rameezmustafa@codeaurora.org>
parent a18f488c
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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);
	}