nvmf,rdma: update spdk_nvmf_rdma_conn_destroy
Merge two if judge statements into one. Change-Id: I72f7e4a936bc0b628c06a9ebb7c816150805f495 Signed-off-by: Ziye Yang <ziye.yang@intel.com>
This commit is contained in:
parent
2628a7a4dd
commit
1c5093358e
@ -193,9 +193,6 @@ spdk_nvmf_rdma_conn_destroy(struct spdk_nvmf_rdma_conn *rdma_conn)
|
||||
|
||||
if (rdma_conn->cm_id) {
|
||||
rdma_destroy_qp(rdma_conn->cm_id);
|
||||
}
|
||||
|
||||
if (rdma_conn->cm_id) {
|
||||
rdma_destroy_id(rdma_conn->cm_id);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user