Refactor dns_zone_create() to return void

After isc_stats_create() change, the dns_zone_create() cannot fail, so
refactor the function to return void and fix all its uses.
This commit is contained in:
Ondřej Surý
2023-06-26 11:09:26 +02:00
committed by Ondřej Surý
parent 045d8d9ed6
commit ea2fe8eea4
8 changed files with 15 additions and 39 deletions

View File

@@ -104,10 +104,7 @@ dns_test_makezone(const char *name, dns_zone_t **zonep, dns_view_t *view,
/*
* Create the zone structure.
*/
result = dns_zone_create(&zone, mctx, 0);
if (result != ISC_R_SUCCESS) {
return (result);
}
dns_zone_create(&zone, mctx, 0);
/*
* Set zone type and origin.