]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
cpuidle: cpuidle-cps: remove unused variable
authorMarcin Nowakowski <marcin.nowakowski@imgtec.com>
Wed, 19 Apr 2017 11:20:54 +0000 (13:20 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 19 Apr 2017 21:04:54 +0000 (23:04 +0200)
'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>
drivers/cpuidle/cpuidle-cps.c

index 926ba9871c628ac4e1e352363f578cfc22835788..12b9145913de77ea0e37949b678a525793e7b98a 100644 (file)
@@ -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