summaryrefslogtreecommitdiff
path: root/src/resolve/resolved-dns-packet.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-12-10 13:28:33 +0100
committerLennart Poettering <lennart@poettering.net>2015-12-11 14:13:31 +0100
commit6728a58d10c019d6ebcf2949d0cb598afa5a7c6f (patch)
tree1200d7f3aac1bd4efe0a72975aacd579ff3d1a69 /src/resolve/resolved-dns-packet.c
parentbea4c76fa0e1a93c629d6f45e043c233872e3be0 (diff)
resolved: no need to check for NULL explicitly before invoking dns_packet_unref()
Diffstat (limited to 'src/resolve/resolved-dns-packet.c')
-rw-r--r--src/resolve/resolved-dns-packet.c3
1 files changed, 1 insertions, 2 deletions
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);