From 6728a58d10c019d6ebcf2949d0cb598afa5a7c6f Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 10 Dec 2015 13:28:33 +0100 Subject: resolved: no need to check for NULL explicitly before invoking dns_packet_unref() --- src/resolve/resolved-dns-packet.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/resolve') diff --git a/src/resolve/resolved-dns-packet.c b/src/resolve/resolved-dns-packet.c index e90500ce70..2117b70979 100644 --- a/src/resolve/resolved-dns-packet.c +++ b/src/resolve/resolved-dns-packet.c @@ -171,8 +171,7 @@ DnsPacket *dns_packet_unref(DnsPacket *p) { assert(p->n_ref > 0); - if (p->more) - dns_packet_unref(p->more); + dns_packet_unref(p->more); if (p->n_ref == 1) dns_packet_free(p); -- cgit v1.2.3-54-g00ecf