nvmf,rdma: remove unnecessary memset

Reason: the 4 fields of struct ibv_recv_wr is already
set in the following 4 lines.

Change-Id: I97437ee2e4c6e944154813bb48b1740b182220df
Signed-off-by: Ziye Yang <ziye.yang@intel.com>
This commit is contained in:
Ziye Yang 2017-02-20 12:41:23 +08:00 committed by Daniel Verkamp
parent 4e4dc3999a
commit 849d140b4d

View File

@ -468,7 +468,6 @@ nvmf_post_rdma_recv(struct spdk_nvmf_request *req)
rdma_req->sg_list[1].lkey = rdma_conn->bufs_mr->lkey;
nvmf_trace_ibv_sge(&rdma_req->sg_list[1]);
memset(&rdma_req->wr.recv, 0, sizeof(struct ibv_recv_wr));
rdma_req->wr.recv.wr_id = (uintptr_t)rdma_req;
rdma_req->wr.recv.next = NULL;
rdma_req->wr.recv.sg_list = rdma_req->sg_list;