cpufreq: vexpress: Drop unused variable
PATCH 1/1 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 <[email protected]>
Signed-off-by Guenter Roeck <[email protected]>
--- drivers/cpufreq/vexpress-spc-cpufreq.c | 1 - 1 file changed, 1 deletion(-)
drivers/cpufreq/vexpress-spc-cpufreq.c +0 -1
@@ -451,7 +451,6 @@ static int ve_spc_cpufreq_init(struct cpufreq_policy *policy)static int ve_spc_cpufreq_exit (struct cpufreq_policy *policy) {struct device *cpu_dev; -int cur_cluster =cpu_to_cluster (policy->cpu); cpu_dev =get_cpu_device (policy->cpu);if (!cpu_dev) {
Signature · 1 line
2.33.0
Quoted 10 lines · Guenter Roeck
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 <[email protected]>Signed-off-by Guenter Roeck <[email protected]>
Reviewed-by Kees Cook <[email protected]>
I hit this in build testing too.
Signature · 1 line
Kees Cook
Quoted 19 lines · Guenter Roeck
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 <[email protected]>Signed-off-by Guenter Roeck <[email protected]>--- drivers/cpufreq/vexpress-spc-cpufreq.c | 1 - 1 file changed, 1 deletion(-)drivers/cpufreq/vexpress-spc-cpufreq.c +0
-0
drivers/cpufreq/vexpress-spc-cpufreq.c static int ve_spc_cpufreq_init(struct cpufreq_policy *policy) · line 456
Quoted 7 lines
drivers/cpufreq/vexpress-spc-cpufreq.c +0
-1@@ -451,7 +451,6 @@ static int ve_spc_cpufreq_init(struct cpufreq_policy *policy)static int ve_spc_cpufreq_exit (struct cpufreq_policy *policy) {struct device *cpu_dev; -int cur_cluster =cpu_to_cluster (policy->cpu); cpu_dev =get_cpu_device (policy->cpu);if (!cpu_dev) {
Applied. Thanks.
Signature · 1 line
viresh