aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpuidle
diff options
context:
space:
mode:
authorMarcin Nowakowski <marcin.nowakowski@imgtec.com>2017-04-19 07:20:54 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-04-19 17:04:54 -0400
commit02018b3929a23acdd452b986e7c8aeca4529d492 (patch)
tree047887752a2d882dbbf20897532e0fc368b3eda1 /drivers/cpuidle
parentecad4502d090a8630f50a88cbe072b92f3a3229e (diff)
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: Marcin Nowakowski <marcin.nowakowski@imgtec.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpuidle')
-rw-r--r--drivers/cpuidle/cpuidle-cps.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/cpuidle/cpuidle-cps.c b/drivers/cpuidle/cpuidle-cps.c
index 926ba9871c62..12b9145913de 100644
--- a/drivers/cpuidle/cpuidle-cps.c
+++ b/drivers/cpuidle/cpuidle-cps.c
@@ -118,7 +118,7 @@ static void __init cps_cpuidle_unregister(void)
118 118
119static int __init cps_cpuidle_init(void) 119static int __init cps_cpuidle_init(void)
120{ 120{
121 int err, cpu, core, i; 121 int err, cpu, i;
122 struct cpuidle_device *device; 122 struct cpuidle_device *device;
123 123
124 /* Detect supported states */ 124 /* Detect supported states */
@@ -160,7 +160,6 @@ static int __init cps_cpuidle_init(void)
160 } 160 }
161 161
162 for_each_possible_cpu(cpu) { 162 for_each_possible_cpu(cpu) {
163 core = cpu_data[cpu].core;
164 device = &per_cpu(cpuidle_dev, cpu); 163 device = &per_cpu(cpuidle_dev, cpu);
165 device->cpu = cpu; 164 device->cpu = cpu;
166#ifdef CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED 165#ifdef CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED