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:
parent
aa0dad5730
commit
44e2f5106a
@ -42,6 +42,7 @@
|
||||
|
||||
#include "spdk_internal/event.h"
|
||||
#include "spdk_internal/log.h"
|
||||
#include "spdk_internal/assert.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);
|
||||
} else {
|
||||
spdk_jsonrpc_send_error_response(ctx->request, SPDK_JSONRPC_ERROR_INVALID_PARAMS,
|
||||
"Invalid parameters");
|
||||
ctx->response_sent = true;
|
||||
SPDK_UNREACHABLE();
|
||||
}
|
||||
|
||||
if (spdk_nvmf_subsystem_resume(subsystem, nvmf_rpc_listen_resumed, ctx)) {
|
||||
|
Loading…
Reference in New Issue
Block a user