From: Erwan Velu Date: Thu, 15 Oct 2015 13:07:26 +0000 (+0200) Subject: CLEANUP: dns: Removing usless variable & assignation X-Git-Tag: v1.7-dev5~58 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5457eb49b4b42e5192df2341093ee30b54dc9369;p=thirdparty%2Fhaproxy.git CLEANUP: dns: Removing usless variable & assignation In dns_send_query(), ret was set to 0 but always reassigned before the usage so this initialisation was useless. The send_error variable was created, assigned to 0 but never used. So this variable is just useless by itself. Removing it. --- diff --git a/src/dns.c b/src/dns.c index 7f4c59ad97..c76637f870 100644 --- a/src/dns.c +++ b/src/dns.c @@ -280,11 +280,10 @@ int dns_send_query(struct dns_resolution *resolution) { struct dns_resolvers *resolvers; struct dns_nameserver *nameserver; - int ret, send_error, bufsize, fd; + int ret, bufsize, fd; resolvers = resolution->resolvers; - ret = send_error = 0; bufsize = dns_build_query(resolution->query_id, resolution->query_type, resolution->hostname_dn, resolution->hostname_dn_len, trash.str, trash.size);