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 <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Link: http://lkml.kernel.org/r/[email protected] [ Edited the changelog. ] Signed-off-by: Ingo Molnar <[email protected]>
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)