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:
parent
4e4dc3999a
commit
849d140b4d
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user