lib/nvmf: fix unreachable code.

Fixes kw warning 10446.

Signed-off-by: Seth Howell <seth.howell@intel.com>
Change-Id: I6d66efe27fad5dba60547bf6eaf990f44e69eacd
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1950
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:
Seth Howell 2020-04-20 18:23:44 -07:00 committed by Tomasz Zawadzki
parent aa0dad5730
commit 44e2f5106a

View File

@ -42,6 +42,7 @@
#include "spdk_internal/event.h" #include "spdk_internal/event.h"
#include "spdk_internal/log.h" #include "spdk_internal/log.h"
#include "spdk_internal/assert.h"
#include "nvmf_internal.h" #include "nvmf_internal.h"
@ -685,9 +686,7 @@ nvmf_rpc_listen_paused(struct spdk_nvmf_subsystem *subsystem,
} }
spdk_nvmf_tgt_stop_listen(ctx->tgt, &ctx->trid); spdk_nvmf_tgt_stop_listen(ctx->tgt, &ctx->trid);
} else { } else {
spdk_jsonrpc_send_error_response(ctx->request, SPDK_JSONRPC_ERROR_INVALID_PARAMS, SPDK_UNREACHABLE();
"Invalid parameters");
ctx->response_sent = true;
} }
if (spdk_nvmf_subsystem_resume(subsystem, nvmf_rpc_listen_resumed, ctx)) { if (spdk_nvmf_subsystem_resume(subsystem, nvmf_rpc_listen_resumed, ctx)) {