diff --git a/src/ocf_ctx_priv.h b/src/ocf_ctx_priv.h index c16fc36..3de4a51 100644 --- a/src/ocf_ctx_priv.h +++ b/src/ocf_ctx_priv.h @@ -30,7 +30,6 @@ struct ocf_ctx { struct { struct ocf_req_allocator *req; - env_allocator *core_io_allocator; } resources; }; diff --git a/src/ocf_utils.c b/src/ocf_utils.c index fb18890..fb6a651 100644 --- a/src/ocf_utils.c +++ b/src/ocf_utils.c @@ -11,33 +11,10 @@ int ocf_utils_init(struct ocf_ctx *ocf_ctx) { - int result; - - result = ocf_req_allocator_init(ocf_ctx); - if (result) - goto ocf_utils_init_ERROR; - - ocf_ctx->resources.core_io_allocator = - env_allocator_create(sizeof(struct ocf_core_io), - "ocf_io"); - if (!ocf_ctx->resources.core_io_allocator) - goto ocf_utils_init_ERROR; - - return 0; - -ocf_utils_init_ERROR: - - ocf_utils_deinit(ocf_ctx); - - return -1; + return ocf_req_allocator_init(ocf_ctx); } void ocf_utils_deinit(struct ocf_ctx *ocf_ctx) { ocf_req_allocator_deinit(ocf_ctx); - - if (ocf_ctx->resources.core_io_allocator) { - env_allocator_destroy(ocf_ctx->resources.core_io_allocator); - ocf_ctx->resources.core_io_allocator = NULL; - } }