Skip to content

Commit

Permalink
cpufreq: vexpress: Drop unused variable
Browse files Browse the repository at this point in the history
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: bb8c26d ("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: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Guenter Roeck authored and Linus Torvalds committed Sep 16, 2021
1 parent 35a3f4e commit b60cee5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/cpufreq/vexpress-spc-cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b60cee5

Please sign in to comment.