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:
parent
c9e5777ede
commit
4a9ba4ef78
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user