CLEANUP: tasks: Remove useless double test on rq_next

No backport is needed, this is purely 1.8-specific.
This commit is contained in:
Christopher Faulet 2017-11-14 10:17:48 +01:00 committed by Willy Tarreau
parent e9a896e09e
commit 919b739862

View File

@ -268,12 +268,10 @@ void process_runnable_tasks()
* the last half. Let's loop back to the beginning * the last half. Let's loop back to the beginning
* of the tree now. * of the tree now.
*/ */
if (unlikely(!rq_next)) {
rq_next = eb32sc_first(&rqueue, tid_bit); rq_next = eb32sc_first(&rqueue, tid_bit);
if (!rq_next) if (!rq_next)
break; break;
} }
}
t = eb32sc_entry(rq_next, struct task, rq); t = eb32sc_entry(rq_next, struct task, rq);
rq_next = eb32sc_next(rq_next, tid_bit); rq_next = eb32sc_next(rq_next, tid_bit);