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

Commit 544becb0 authored by Pavankumar Kondeti's avatar Pavankumar Kondeti
Browse files

qcom-cpufreq: Remove superfluous NULL check for policy->freq_table



policy->freq_table is initialized in cpufreq_table_validate_and_show().
This table can't be NULL in msm_cpufreq_target(). Because we bail
out from init if cpufreq_table_validate_and_show() returns failure.

Change-Id: I2bdd22ebfa2f2794d4b256159bc66b14a6da74c0
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent d9d13ae1
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -91,12 +91,6 @@ static int msm_cpufreq_target(struct cpufreq_policy *policy,
	}

	table = policy->freq_table;
	if (!table) {
		pr_err("cpufreq: Failed to get frequency table for CPU%u\n",
		       policy->cpu);
		ret = -ENODEV;
		goto done;
	}
	if (per_cpu(cached_resolve_freq, first_cpu) == target_freq)
		index = per_cpu(cached_resolve_idx, first_cpu);
	else