lib/nvmf: remove some unreachable code.
With the advent of custom transports, it is impossible for this call to fail. fix kw warning #12653 Signed-off-by: Seth Howell <seth.howell@intel.com> Change-Id: Ib1f9d0992e2def9eafd8696310b6c79ab6ac8c78 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1952 Community-CI: Mellanox Build Bot Community-CI: Broadcom CI Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
This commit is contained in:
parent
f18f8e930a
commit
9f50e7c244
@ -584,12 +584,7 @@ spdk_nvmf_parse_transport(struct spdk_nvmf_parse_transport_ctx *ctx)
|
||||
return;
|
||||
}
|
||||
|
||||
if (spdk_nvme_transport_id_parse_trtype(&trtype, type)) {
|
||||
SPDK_ERRLOG("Invalid transport type '%s'\n", type);
|
||||
ctx->cb_fn(-1);
|
||||
free(ctx);
|
||||
return;
|
||||
}
|
||||
spdk_nvme_transport_id_parse_trtype(&trtype, type);
|
||||
|
||||
if (spdk_nvmf_tgt_get_transport(g_spdk_nvmf_tgt, type)) {
|
||||
SPDK_ERRLOG("Duplicate transport type '%s'\n", type);
|
||||
|
Loading…
x
Reference in New Issue
Block a user