Commit ddf958f3 authored by ye xingchen's avatar ye xingchen Committed by Viresh Kumar

cpufreq: tegra194: Remove the unneeded result variable

Return the value returned by smp_call_function_single() directly instead
of storing it in another redundant variable.
Reported-by: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarye xingchen <ye.xingchen@zte.com.cn>
[ Viresh: Minor update to commit log ]
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent 3359d527
...@@ -314,11 +314,7 @@ static void tegra194_get_cpu_ndiv_sysreg(void *ndiv) ...@@ -314,11 +314,7 @@ static void tegra194_get_cpu_ndiv_sysreg(void *ndiv)
static int tegra194_get_cpu_ndiv(u32 cpu, u32 cpuid, u32 clusterid, u64 *ndiv) static int tegra194_get_cpu_ndiv(u32 cpu, u32 cpuid, u32 clusterid, u64 *ndiv)
{ {
int ret; return smp_call_function_single(cpu, tegra194_get_cpu_ndiv_sysreg, &ndiv, true);
ret = smp_call_function_single(cpu, tegra194_get_cpu_ndiv_sysreg, &ndiv, true);
return ret;
} }
static void tegra194_set_cpu_ndiv_sysreg(void *data) static void tegra194_set_cpu_ndiv_sysreg(void *data)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment