Skip to content

Commit ddf958f

Browse files
ye xingchenvireshk
authored andcommitted
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 <[email protected]> Signed-off-by: ye xingchen <[email protected]> [ Viresh: Minor update to commit log ] Signed-off-by: Viresh Kumar <[email protected]>
1 parent 3359d52 commit ddf958f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

drivers/cpufreq/tegra194-cpufreq.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -314,11 +314,7 @@ static void tegra194_get_cpu_ndiv_sysreg(void *ndiv)
314314

315315
static int tegra194_get_cpu_ndiv(u32 cpu, u32 cpuid, u32 clusterid, u64 *ndiv)
316316
{
317-
int ret;
318-
319-
ret = smp_call_function_single(cpu, tegra194_get_cpu_ndiv_sysreg, &ndiv, true);
320-
321-
return ret;
317+
return smp_call_function_single(cpu, tegra194_get_cpu_ndiv_sysreg, &ndiv, true);
322318
}
323319

324320
static void tegra194_set_cpu_ndiv_sysreg(void *data)

0 commit comments

Comments
 (0)