]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolved: remove runtime check for previously asserted condition
authorDaniel Mack <daniel@zonque.org>
Tue, 28 Jul 2015 16:09:08 +0000 (18:09 +0200)
committerDaniel Mack <daniel@zonque.org>
Tue, 25 Aug 2015 08:18:45 +0000 (10:18 +0200)
src/resolve/resolved-dns-transaction.c

index bbbc6377a81c03aab99519a6f410b3dcf5109f0e..af654cbc692b10f7025eafb0504266e765fde84f 100644 (file)
@@ -186,9 +186,6 @@ void dns_transaction_complete(DnsTransaction *t, DnsTransactionState state) {
         assert(t);
         assert(!IN_SET(state, DNS_TRANSACTION_NULL, DNS_TRANSACTION_PENDING));
 
-        if (!IN_SET(t->state, DNS_TRANSACTION_NULL, DNS_TRANSACTION_PENDING))
-                return;
-
         /* Note that this call might invalidate the query. Callers
          * should hence not attempt to access the query or transaction
          * after calling this function. */