diff options
author | Byungchul Park <byungchul.park@lge.com> | 2016-02-11 11:59:38 +0900 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-02-17 09:32:03 +0100 |
commit | 3223d052b79eb9b620d170584c417d60a8bfd649 (patch) | |
tree | 933b6b296b63d07f5a1b7f22a4046c0a4b5424ff /kernel/sched/core.c | |
parent | 4142c3ebb685bb338b7d96090d8f90ff49065ff6 (diff) | |
download | op-kernel-dev-3223d052b79eb9b620d170584c417d60a8bfd649.zip op-kernel-dev-3223d052b79eb9b620d170584c417d60a8bfd649.tar.gz |
sched/core: Remove dead statement in __schedule()
Remove an unnecessary assignment of variable not used any more.
( This has no runtime effects as GCC is smart enough to optimize
this out. )
Signed-off-by: Byungchul Park <byungchul.park@lge.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1455159578-17256-1-git-send-email-byungchul.park@lge.com
[ Edited the changelog. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched/core.c')
-rw-r--r-- | kernel/sched/core.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 7e548bd..87ca0be 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -3346,7 +3346,6 @@ static void __sched notrace __schedule(bool preempt) trace_sched_switch(preempt, prev, next); rq = context_switch(rq, prev, next); /* unlocks the rq */ - cpu = cpu_of(rq); } else { lockdep_unpin_lock(&rq->lock); raw_spin_unlock_irq(&rq->lock); |