Commit 7bc69184 authored by Daniel Salzman's avatar Daniel Salzman

conf: remove redundant conf parameter

parent b0c3cff3
......@@ -339,7 +339,7 @@ void conf_free(
conf->api->txn_abort(conf->io.txn_stack);
}
conf_deactivate_modules(conf, &conf->query_modules, &conf->query_plan);
conf_deactivate_modules(&conf->query_modules, &conf->query_plan);
if (!conf->is_clone) {
conf->api->deinit(conf->db);
......@@ -457,11 +457,10 @@ activate_error:
}
void conf_deactivate_modules(
conf_t *conf,
list_t *query_modules,
struct query_plan **query_plan)
{
if (conf == NULL || query_modules == NULL || query_plan == NULL) {
if (query_modules == NULL || query_plan == NULL) {
return;
}
......
......@@ -207,12 +207,10 @@ void conf_activate_modules(
/*!
* Deactivates query modules list.
*
* \param[in] conf Configuration.
* \param[in] query_modules Destination query modules list.
* \param[in] query_plan Destination query plan.
*/
void conf_deactivate_modules(
conf_t *conf,
list_t *query_modules,
struct query_plan **query_plan
);
......
......@@ -100,7 +100,7 @@ void zone_free(zone_t **zone_ptr)
/* Free zone contents. */
zone_contents_deep_free(&zone->contents);
conf_deactivate_modules(conf(), &zone->query_modules, &zone->query_plan);
conf_deactivate_modules(&zone->query_modules, &zone->query_plan);
free(zone);
*zone_ptr = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment