event/nvmf: remove the unnecessary check in spdk_nvmf_subsystem_fini

Since we already checked the core info in _spdk_subsystem_fini_next
function.

Change-Id: I6ab28d8fb11a7a07ae8c14c27357db236bf51b3e
Signed-off-by: Ziye Yang <ziye.yang@intel.com>
Reviewed-on: https://review.gerrithub.io/c/446190
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Seth Howell <seth.howell5141@gmail.com>
Reviewed-by: qun wan <qun.wan@intel.com>
This commit is contained in:
Ziye Yang 2019-02-26 17:53:19 +08:00 committed by Changpeng Liu
parent 0f01513359
commit 7ae5b8649e

View File

@ -104,13 +104,7 @@ _spdk_nvmf_shutdown_cb(void *arg1, void *arg2)
static void
spdk_nvmf_subsystem_fini(void)
{
/* Always let the first core to handle the case */
if (spdk_env_get_current_core() != spdk_env_get_first_core()) {
spdk_event_call(spdk_event_allocate(spdk_env_get_first_core(),
_spdk_nvmf_shutdown_cb, NULL, NULL));
} else {
_spdk_nvmf_shutdown_cb(NULL, NULL);
}
_spdk_nvmf_shutdown_cb(NULL, NULL);
}
static void