Skip to content

Commit 3223d05

Browse files
lgebyungchulparkIngo Molnar
authored andcommitted
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>
1 parent 4142c3e commit 3223d05

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

kernel/sched/core.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3346,7 +3346,6 @@ static void __sched notrace __schedule(bool preempt)
33463346

33473347
trace_sched_switch(preempt, prev, next);
33483348
rq = context_switch(rq, prev, next); /* unlocks the rq */
3349-
cpu = cpu_of(rq);
33503349
} else {
33513350
lockdep_unpin_lock(&rq->lock);
33523351
raw_spin_unlock_irq(&rq->lock);

0 commit comments

Comments
 (0)