All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RESEND] cpuidle: cpuidle-cps: remove unused variable
@ 2017-04-19 11:20 Marcin Nowakowski
  0 siblings, 0 replies; only message in thread
From: Marcin Nowakowski @ 2017-04-19 11:20 UTC (permalink / raw)
  To: ^Cfael J . Wysocki, Daniel Lezcano; +Cc: linux-pm, Marcin Nowakowski, trivial

'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>
Cc: trivial@kernel.org
---
 Re-sending to the linux-pm mailing list, as I missed it earlier

 drivers/cpuidle/cpuidle-cps.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/cpuidle/cpuidle-cps.c b/drivers/cpuidle/cpuidle-cps.c
index 926ba98..12b9145 100644
--- a/drivers/cpuidle/cpuidle-cps.c
+++ b/drivers/cpuidle/cpuidle-cps.c
@@ -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
-- 
2.7.4

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-04-19 11:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-19 11:20 [PATCH RESEND] cpuidle: cpuidle-cps: remove unused variable Marcin Nowakowski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.