summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/sd-dhcp6-client.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-04-20 20:57:04 +0200
committerLennart Poettering <lennart@poettering.net>2015-04-21 00:58:56 +0200
commit62e3d1aed512d68cab1fc9b509e813a1fa2b3790 (patch)
tree8d6e52e3bc0694fbc481c7b1c3475626eb68afe4 /src/libsystemd-network/sd-dhcp6-client.c
parent17978b17d9f5d3591f1c644938efc9c27aa60485 (diff)
dhcp6: remove unnecessary if check
Diffstat (limited to 'src/libsystemd-network/sd-dhcp6-client.c')
-rw-r--r--src/libsystemd-network/sd-dhcp6-client.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libsystemd-network/sd-dhcp6-client.c b/src/libsystemd-network/sd-dhcp6-client.c
index cd33237eb5..85162dc555 100644
--- a/src/libsystemd-network/sd-dhcp6-client.c
+++ b/src/libsystemd-network/sd-dhcp6-client.c
@@ -1205,8 +1205,7 @@ sd_dhcp6_client *sd_dhcp6_client_unref(sd_dhcp6_client *client) {
client_reset(client);
sd_dhcp6_client_detach_event(client);
- if (client->lease)
- sd_dhcp6_lease_unref(client->lease);
+ sd_dhcp6_lease_unref(client->lease);
free(client->req_opts);
free(client);