Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cpufreq: vexpress: Drop unused variable

arm:allmodconfig fails to build with the following error.

drivers/cpufreq/vexpress-spc-cpufreq.c:454:13: error:
unused variable 'cur_cluster'

Remove the unused variable.

Fixes: bb8c26d9387f ("cpufreq: vexpress: Set CPUFREQ_IS_COOLING_DEV flag")
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>

authored by

Guenter Roeck and committed by
Viresh Kumar
45b2bb66 6880fa6c

-1
-1
drivers/cpufreq/vexpress-spc-cpufreq.c
··· 451 451 static int ve_spc_cpufreq_exit(struct cpufreq_policy *policy) 452 452 { 453 453 struct device *cpu_dev; 454 - int cur_cluster = cpu_to_cluster(policy->cpu); 455 454 456 455 cpu_dev = get_cpu_device(policy->cpu); 457 456 if (!cpu_dev) {