Skip to contentSkip to conversation

cpuset: remove an unused variable

PATCH In review Dan Carpenter 1 participant 2 messages Mar 28, 2012 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cpuset: remove an unused variable

We don't use "cpu" any more after 2baab4e904 "sched: Fix select_fallback_rq() vs cpu_active/cpu_online".

kernel/cpuset.c +0 -1
index dfceaca..14f7070 100644
@@ -2165,7 +2165,6 @@ void cpuset_cpus_allowed(struct task_struct *tsk, struct cpumask *pmask)
 void cpuset_cpus_allowed_fallback(struct task_struct *tsk)
 {
 	const struct cpuset *cs;
-	int cpu;
 
 	rcu_read_lock();
 	cs = task_cs(tsk);
#1 lore raw

[tip:sched/urgent] cpusets: Remove an unused variable

Commit-ID:  160594e99dbbb0a5600ad922c630952c7c1c14bf
Gitweb:     http://git.kernel.org/tip/160594e99dbbb0a5600ad922c630952c7c1c14bf
Author:     Dan Carpenter <[email protected]>
AuthorDate: Wed, 28 Mar 2012 13:46:09 +0300
Committer:  Ingo Molnar <[email protected]>
CommitDate: Wed, 28 Mar 2012 13:40:44 +0200

cpusets: Remove an unused variable

We don't use "cpu" any more after 2baab4e904 "sched: Fix select_fallback_rq() vs cpu_active/cpu_online".

---
 kernel/cpuset.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
kernel/cpuset.c +0 -1
index c9837b7..4ef4d7e 100644
@@ -2198,7 +2198,6 @@ void cpuset_cpus_allowed(struct task_struct *tsk, struct cpumask *pmask)
 void cpuset_cpus_allowed_fallback(struct task_struct *tsk)
 {
 	const struct cpuset *cs;
-	int cpu;
 
 	rcu_read_lock();
 	cs = task_cs(tsk);