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.
This commit is contained in:
Erwan Velu 2015-10-15 15:07:26 +02:00 committed by Willy Tarreau
parent f714fb533e
commit 5457eb49b4

View File

@ -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);