From: Yu Watanabe Date: Sun, 3 Jul 2022 21:11:00 +0000 (+0900) Subject: resolve: shorten code a bit X-Git-Tag: v252-rc1~566^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d3887b2b484004f6d5b393f57b01fe2eb917981f;p=thirdparty%2Fsystemd.git resolve: shorten code a bit --- diff --git a/src/resolve/resolved-mdns.c b/src/resolve/resolved-mdns.c index a311f54e44d..0a66bccba3e 100644 --- a/src/resolve/resolved-mdns.c +++ b/src/resolve/resolved-mdns.c @@ -207,10 +207,10 @@ static bool mdns_should_reply_using_unicast(DnsPacket *p) { } /* All the questions in the query had a QU bit set, RFC 6762, section 5.4 */ - DNS_QUESTION_FOREACH_ITEM(item, p->question) { + DNS_QUESTION_FOREACH_ITEM(item, p->question) if (!FLAGS_SET(item->flags, DNS_QUESTION_WANTS_UNICAST_REPLY)) return false; - } + return true; }