sched/core: Remove dead statement in __schedule()
authorByungchul Park <byungchul.park@lge.com>
Thu, 11 Feb 2016 02:59:38 +0000 (11:59 +0900)
committerIngo Molnar <mingo@kernel.org>
Wed, 17 Feb 2016 08:32:03 +0000 (09:32 +0100)
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>
kernel/sched/core.c

index 7e548bde67ee255e0d1bfdb018f1b7af912f4b29..87ca0bee1140e27721c495a55b8c79c407870c99 100644 (file)
@@ -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);