nvmf: remove unused g_nvmf_driver

The mutex is initialized, but otherwise is unused.

Change-Id: Ia68adbd430fad391cc465c07dd6e937e90dd2c5c
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Daniel Verkamp 2016-06-07 15:48:04 -07:00
parent f634c1245a
commit ca4932f995

View File

@ -48,37 +48,16 @@
SPDK_LOG_REGISTER_TRACE_FLAG("nvmf", SPDK_TRACE_NVMF) 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; extern struct rte_mempool *request_mempool;
int int
nvmf_initialize(void) nvmf_initialize(void)
{ {
struct nvmf_driver *system = &g_nvmf_driver;
int err;
if (request_mempool == NULL) { if (request_mempool == NULL) {
fprintf(stderr, "NVMf application has not created request mempool!\n"); fprintf(stderr, "NVMf application has not created request mempool!\n");
return -1; 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; return 0;
} }