bdev/nvme: remove extra OCSSD check

OCSSD is handled specially now by nvme_ctrlr_populate_namespaces,
so we don't need any extra handling.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I39a9f0a9d14aa8c32c1fda6055e26d8eb712b107

Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/475919
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
Jim Harris 2019-11-26 10:49:20 -07:00 committed by Tomasz Zawadzki
parent d179541e0f
commit a3dd00ed97

View File

@ -1409,11 +1409,7 @@ connect_attach_cb(void *cb_ctx, const struct spdk_nvme_transport_id *trid,
return; return;
} }
if (spdk_nvme_ctrlr_is_ocssd_supported(ctrlr)) { bdev_nvme_populate_namespaces(ctx, populate_namespaces_cb, ctx);
populate_namespaces_cb(ctx, 0, 0);
} else {
bdev_nvme_populate_namespaces(ctx, populate_namespaces_cb, ctx);
}
} }
static int static int