From 5f03a9c1f37286f6b86ff45c555e557a717ee904 Mon Sep 17 00:00:00 2001 From: Ziye Yang Date: Wed, 12 Dec 2018 15:58:18 +0800 Subject: [PATCH] nvmf/tcp: remove the unnecessary check. Since we already make the recv state handling in a correct way, so we do not need this check any more. Change-Id: Id71ab2e0ef60be302f8cf6ea776259d7312663ec Signed-off-by: Ziye Yang Reviewed-on: https://review.gerrithub.io/436896 Chandler-Test-Pool: SPDK Automated Test System Tested-by: SPDK CI Jenkins Reviewed-by: Ben Walker Reviewed-by: Jim Harris --- lib/nvmf/tcp.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/nvmf/tcp.c b/lib/nvmf/tcp.c index d727c5fa8..3dcb3b15b 100644 --- a/lib/nvmf/tcp.c +++ b/lib/nvmf/tcp.c @@ -1955,10 +1955,6 @@ spdk_nvmf_tcp_sock_process(struct nvme_tcp_qpair *tqpair) /* Wait for the pdu specific header */ case NVME_TCP_PDU_RECV_STATE_AWAIT_PDU_PSH: pdu = &tqpair->pdu_in_progress; - if (pdu->tcp_req) { - break; - } - psh_len = hlen = pdu->hdr.common.hlen; /* Only capsule_cmd and h2c_data has header digest */ if (((pdu->hdr.common.pdu_type == SPDK_NVME_TCP_PDU_TYPE_CAPSULE_CMD) ||