bdev/nvme: fix the error usage of function return value

Fix the issue #379.

Change-Id: Ia953d4ebe232d389ba3264074592ae8d0cff467a
Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-on: https://review.gerrithub.io/421078
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
Changpeng Liu 2018-08-02 04:01:22 -04:00 committed by Jim Harris
parent c9e5777ede
commit 4a9ba4ef78

View File

@ -1364,7 +1364,7 @@ bdev_nvme_library_init(void)
}
rc = create_ctrlr(ctrlr, probe_ctx->names[i], &probe_ctx->trids[i]);
if (!rc) {
if (rc) {
goto end;
}
} else {