diff options
author | ye xingchen <ye.xingchen@zte.com.cn> | 2022-08-31 05:32:13 +0200 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2022-09-01 06:12:12 +0200 |
commit | ddf958f39741a1dda74020ac8a0f226cb5aa017b (patch) | |
tree | e9fb302a76e66a693179f32bfcca494d5d2000c2 /drivers/cpufreq/tegra194-cpufreq.c | |
parent | cpufreq: bmips-cpufreq: Use module_init and add module_exit (diff) | |
download | linux-ddf958f39741a1dda74020ac8a0f226cb5aa017b.tar.xz linux-ddf958f39741a1dda74020ac8a0f226cb5aa017b.zip |
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: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
[ Viresh: Minor update to commit log ]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/cpufreq/tegra194-cpufreq.c')
-rw-r--r-- | drivers/cpufreq/tegra194-cpufreq.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/cpufreq/tegra194-cpufreq.c b/drivers/cpufreq/tegra194-cpufreq.c index 1216046cf4c2..7e143c06972e 100644 --- a/drivers/cpufreq/tegra194-cpufreq.c +++ b/drivers/cpufreq/tegra194-cpufreq.c @@ -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) { - int ret; - - ret = smp_call_function_single(cpu, tegra194_get_cpu_ndiv_sysreg, &ndiv, true); - - return ret; + return smp_call_function_single(cpu, tegra194_get_cpu_ndiv_sysreg, &ndiv, true); } static void tegra194_set_cpu_ndiv_sysreg(void *data) |