]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
remove non null check
authorMark Andrews <marka@isc.org>
Tue, 9 Dec 2014 08:51:32 +0000 (19:51 +1100)
committerMark Andrews <marka@isc.org>
Tue, 9 Dec 2014 08:51:32 +0000 (19:51 +1100)
lib/dns/master.c

index da79c90ae4db8615f4b64699b9ea2f52a51a4046..2d14c58b8cf2492e530011b7ebe7c6abfd211d54 100644 (file)
@@ -2108,8 +2108,7 @@ pushfile(const char *master_file, dns_name_t *origin, dns_loadctx_t *lctx) {
        return (ISC_R_SUCCESS);
 
  cleanup:
-       if (new != NULL)
-               incctx_destroy(lctx->mctx, new);
+       incctx_destroy(lctx->mctx, new);
        return (result);
 }