From 4595536a0dec5c419212a27bd650c400dccf86b8 Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Wed, 13 Oct 2021 08:43:47 -0700 Subject: [PATCH] Remove dead code Remove code from dns_zone_setparentals() that cannot be reached now that set_serverslist() returns void. --- lib/dns/zone.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/dns/zone.c b/lib/dns/zone.c index 163ccb3c25..c2e1dafd2b 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -6454,7 +6454,6 @@ void dns_zone_setparentals(dns_zone_t *zone, const isc_sockaddr_t *parentals, dns_name_t **keynames, dns_name_t **tlsnames, uint32_t count) { - isc_result_t result = ISC_R_SUCCESS; isc_sockaddr_t *newaddrs = NULL; isc_dscp_t *newdscps = NULL; dns_name_t **newkeynames = NULL; @@ -6485,9 +6484,6 @@ dns_zone_setparentals(dns_zone_t *zone, const isc_sockaddr_t *parentals, set_serverslist(count, parentals, &newaddrs, NULL, &newdscps, keynames, &newkeynames, tlsnames, &newtlsnames, zone->mctx); INSIST(newdscps == NULL); - if (result != ISC_R_SUCCESS) { - goto unlock; - } /* * Everything is ok so attach to the zone.