]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: tasks: Remove useless double test on rq_next
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 14 Nov 2017 09:17:48 +0000 (10:17 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 14 Nov 2017 17:11:34 +0000 (18:11 +0100)
No backport is needed, this is purely 1.8-specific.

src/task.c

index 4f9b049ca5c97e1c147fc3d1c462957b3d675bab..6e7b9be552d2c63a133ef6e0dc6278ff695500b4 100644 (file)
@@ -268,11 +268,9 @@ void process_runnable_tasks()
                                 * the last half. Let's loop back to the beginning
                                 * of the tree now.
                                 */
-                               if (unlikely(!rq_next)) {
-                                       rq_next = eb32sc_first(&rqueue, tid_bit);
-                                       if (!rq_next)
-                                               break;
-                               }
+                               rq_next = eb32sc_first(&rqueue, tid_bit);
+                               if (!rq_next)
+                                       break;
                        }
 
                        t = eb32sc_entry(rq_next, struct task, rq);