]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: dns: coding style update
authorBaptiste Assmann <bedis9@gmail.com>
Wed, 2 Sep 2015 20:05:24 +0000 (22:05 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 8 Sep 2015 08:52:09 +0000 (10:52 +0200)
No affectation in a if condition.

src/dns.c

index 4bc54489f36a2b84ffc2bbece1910582b0254eeb..bf5afdf964e46ae1df266f60245a8cf9970ba0ae 100644 (file)
--- a/src/dns.c
+++ b/src/dns.c
@@ -165,7 +165,8 @@ void dns_resolve_recv(struct dgram_conn *dgram)
                query_id = dns_response_get_query_id(buf);
 
                /* search the query_id in the pending resolution tree */
-               if ((eb = eb32_lookup(&resolvers->query_ids, query_id)) == NULL) {
+               eb = eb32_lookup(&resolvers->query_ids, query_id);
+               if (eb == NULL) {
                        /* unknown query id means an outdated response and can be safely ignored */
                        nameserver->counters.outdated += 1;
                        continue;