Small cleanup, fixing the dead code issues found by scan-build.
Patch submitted by Tim Rühsen.
*instp = inst;
isc_mem_attach(mctx, &inst->mctx);
- result = ISC_R_SUCCESS;
result = synthrecord_parseconfig(inst, parameters, cfg, cfgfile,
cfgline, aclctx, ctx->origin);
UNLOCK(&qpdb->heap->lock);
return ISC_R_NOTFOUND;
}
- header = elem->header;
nlock = qpzone_get_lock(elem->node);
UNLOCK(&qpdb->heap->lock);
static unsigned int
nodecount(dns_db_t *db) {
- qpzonedb_t *qpdb = qpdb = (qpzonedb_t *)db;
+ qpzonedb_t *qpdb = (qpzonedb_t *)db;
dns_qp_memusage_t mu;
REQUIRE(VALID_QPZONE(qpdb));
if (rdataset->type != 0) {
return ISC_R_FAILURE;
}
- rawbuf = newslab(rdataset, mctx, region, 0, buflen, func, file,
- line);
+ (void *)newslab(rdataset, mctx, region, 0, buflen, func, file,
+ line);
return ISC_R_SUCCESS;
}
OSSL_PARAM *params = NULL;
isc_result_t result;
- result = ISC_R_SUCCESS;
-
REQUIRE(pkeyp != NULL && *pkeyp == NULL);
REQUIRE(c != NULL && c->n != NULL && c->e != NULL);
if (result != ISC_R_NOTFOUND) {
return result;
}
- result = ISC_R_SUCCESS;
/* No kasp with configured name was found in list, create new one. */
INSIST(kasp == NULL);