Commit 02018b39 authored by Marcin Nowakowski's avatar Marcin Nowakowski Committed by Rafael J. Wysocki

cpuidle: cpuidle-cps: remove unused variable

'core' in cps_cpuidle_init has never been used and is unnecessary, so
remove the dead code.
Signed-off-by: default avatarMarcin Nowakowski <marcin.nowakowski@imgtec.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent ecad4502
......@@ -118,7 +118,7 @@ static void __init cps_cpuidle_unregister(void)
static int __init cps_cpuidle_init(void)
{
int err, cpu, core, i;
int err, cpu, i;
struct cpuidle_device *device;
/* Detect supported states */
......@@ -160,7 +160,6 @@ static int __init cps_cpuidle_init(void)
}
for_each_possible_cpu(cpu) {
core = cpu_data[cpu].core;
device = &per_cpu(cpuidle_dev, cpu);
device->cpu = cpu;
#ifdef CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment