From 15e5554467c937465e48b4ec62b6d2589f8b997f Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 5 Mar 2010 10:11:01 +0100 Subject: [PATCH] [CLEANUP] session: remove duplicate test This duplicate test should have been removed with the loop rework but was forgotten. It was harmless, but disassembly shows that it prevents gcc from correctly optimizing the loop. --- src/session.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/session.c b/src/session.c index 60d8d2abb..515a275c0 100644 --- a/src/session.c +++ b/src/session.c @@ -1170,9 +1170,6 @@ struct task *process_session(struct task *t) ana_list = ana_back = s->rep->analysers; while (ana_list && max_loops--) { - if (!ana_list) - break; - /* Warning! ensure that analysers are always placed in ascending order! */ if (ana_list & AN_RES_WAIT_HTTP) {