]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[CLEANUP] session: remove duplicate test
authorWilly Tarreau <w@1wt.eu>
Fri, 5 Mar 2010 09:11:01 +0000 (10:11 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 5 Mar 2010 09:12:01 +0000 (10:12 +0100)
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

index 60d8d2abb2f3c6939aef3593d09233c68e66e507..515a275c052ba81dddc91680d21c44da004dd7d4 100644 (file)
@@ -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) {