diff options
author | Kirill Tkhai <ktkhai@parallels.com> | 2014-09-12 17:42:01 +0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-09-19 12:35:20 +0200 |
commit | f3f1768f89d601ad29f4701deef91caaa82b9f57 (patch) | |
tree | 717e77f4079f9d2811ff324454353c884d1d0311 /kernel/sched | |
parent | f3cd1c4ec059c956d3346705e453aff3ace3b494 (diff) | |
download | blackbird-obmc-linux-f3f1768f89d601ad29f4701deef91caaa82b9f57.tar.gz blackbird-obmc-linux-f3f1768f89d601ad29f4701deef91caaa82b9f57.zip |
sched/rt: Remove useless if from cleanup pick_next_task_rt()
_pick_next_task_rt() never returns NULL.
Signed-off-by: Kirill Tkhai <ktkhai@parallels.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1410529321.3569.26.camel@tkhai
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched')
-rw-r--r-- | kernel/sched/rt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c index 4feac8fcb47f..2e6a7743703e 100644 --- a/kernel/sched/rt.c +++ b/kernel/sched/rt.c @@ -1468,8 +1468,7 @@ pick_next_task_rt(struct rq *rq, struct task_struct *prev) p = _pick_next_task_rt(rq); /* The running task is never eligible for pushing */ - if (p) - dequeue_pushable_task(rq, p); + dequeue_pushable_task(rq, p); set_post_schedule(rq); |