From 57bc19103ddc343372ab822a3932c362160f7875 Mon Sep 17 00:00:00 2001 From: Robert Baldyga Date: Mon, 27 May 2019 14:19:10 +0200 Subject: [PATCH] Remove unused core_io_allocator Signed-off-by: Robert Baldyga --- src/ocf_ctx_priv.h | 1 - src/ocf_utils.c | 25 +------------------------ 2 files changed, 1 insertion(+), 25 deletions(-) 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; - } }