From: Willy Tarreau Date: Fri, 5 Mar 2010 09:11:01 +0000 (+0100) Subject: [CLEANUP] session: remove duplicate test X-Git-Tag: v1.4.2~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=15e5554467c937465e48b4ec62b6d2589f8b997f;p=thirdparty%2Fhaproxy.git [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. --- diff --git a/src/session.c b/src/session.c index 60d8d2abb2..515a275c05 100644 --- a/src/session.c +++ b/src/session.c @@ -1170,9 +1170,6 @@ resync_stream_interface: 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) {