From ca4932f9954348be539dd4d9575b301f0e131e15 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Tue, 7 Jun 2016 15:48:04 -0700 Subject: [PATCH] nvmf: remove unused g_nvmf_driver The mutex is initialized, but otherwise is unused. Change-Id: Ia68adbd430fad391cc465c07dd6e937e90dd2c5c Signed-off-by: Daniel Verkamp --- lib/nvmf/nvmf.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/lib/nvmf/nvmf.c b/lib/nvmf/nvmf.c index 188ce305f..ab50f3f7f 100644 --- a/lib/nvmf/nvmf.c +++ b/lib/nvmf/nvmf.c @@ -48,37 +48,16 @@ SPDK_LOG_REGISTER_TRACE_FLAG("nvmf", SPDK_TRACE_NVMF) -/* - * The NVMf library maintains context for a list of subsystems. Each - * subsystem will be associated with one or more NVMe controllers - * that the library discovers. It is expected that the NVMf library - * consumer will make requests to create the desired subsystems. - */ -struct nvmf_driver { - pthread_mutex_t mutex; -}; - -static struct nvmf_driver g_nvmf_driver; - extern struct rte_mempool *request_mempool; int nvmf_initialize(void) { - struct nvmf_driver *system = &g_nvmf_driver; - int err; - if (request_mempool == NULL) { fprintf(stderr, "NVMf application has not created request mempool!\n"); return -1; } - err = pthread_mutex_init(&system->mutex, NULL); - if (err < 0) { - fprintf(stderr, "NVMf system pthread_mutex_init() failed\n"); - return -1; - } - return 0; }