diff --git a/lib/nvmf/rdma.c b/lib/nvmf/rdma.c index 21b9e7e8f..3326f333d 100644 --- a/lib/nvmf/rdma.c +++ b/lib/nvmf/rdma.c @@ -1176,21 +1176,17 @@ nvmf_recv(struct spdk_nvmf_conn *conn, struct ibv_wc *wc) ret = spdk_nvmf_request_exec(req); if (ret < 0) { SPDK_ERRLOG("Command execution failed\n"); + return -1; } - } else if (ret > 0) { - /* - * Pending transfer from host to controller; command will continue - * once transfer is complete. - */ - ret = 0; + + return 0; } - if (ret < 0) { - /* recover the tx_desc */ - nvmf_deactive_tx_desc(tx_desc); - } - - return ret; + /* + * Pending transfer from host to controller; command will continue + * once transfer is complete. + */ + return 0; } int