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:
Ziye Yang 2016-08-15 13:29:35 +08:00 committed by Ben Walker
parent 2628a7a4dd
commit 1c5093358e

View File

@ -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);
}