From 0e4fb6b2dedf590741220b806c92e9e68857b457 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 25 Dec 2015 15:01:37 +0100 Subject: resolved: no need to store return value of dns_server_possible_features() The call already updates possible_features, it's pointless doing this in the caller a second time. --- src/resolve/resolved-dns-scope.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/resolve') diff --git a/src/resolve/resolved-dns-scope.c b/src/resolve/resolved-dns-scope.c index b284cb8b27..a4df9b010a 100644 --- a/src/resolve/resolved-dns-scope.c +++ b/src/resolve/resolved-dns-scope.c @@ -320,7 +320,8 @@ static int dns_scope_socket(DnsScope *s, int type, int family, const union in_ad if (!srv) return -ESRCH; - srv->possible_features = dns_server_possible_features(srv); + /* Determine current feature level to use */ + (void) dns_server_possible_features(srv); if (type == SOCK_DGRAM && srv->possible_features < DNS_SERVER_FEATURE_LEVEL_UDP) return -EAGAIN; -- cgit v1.2.3-54-g00ecf