From 8326c7f789bad623a5705b04b78d104d993a90ee Mon Sep 17 00:00:00 2001 From: Daniel Mack Date: Tue, 28 Jul 2015 18:09:08 +0200 Subject: [PATCH] resolved: remove runtime check for previously asserted condition --- src/resolve/resolved-dns-transaction.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/resolve/resolved-dns-transaction.c b/src/resolve/resolved-dns-transaction.c index bbbc6377a81..af654cbc692 100644 --- a/src/resolve/resolved-dns-transaction.c +++ b/src/resolve/resolved-dns-transaction.c @@ -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. */