summaryrefslogtreecommitdiff
path: root/hw/rdma/rdma_rm.h
diff options
context:
space:
mode:
authorYuval Shaia <yuval.shaia@oracle.com>2018-12-21 16:40:32 +0200
committerMarcel Apfelbaum <marcel.apfelbaum@gmail.com>2018-12-22 11:09:56 +0200
commit14c74f720738e17ff2569ba66c0d32a5f0f69a69 (patch)
tree11353deae151381239c2be58463282a4fdd65663 /hw/rdma/rdma_rm.h
parent091782171fa0d339f3af3c0f3a4aeb7a2e8c39fc (diff)
downloadqemu-14c74f720738e17ff2569ba66c0d32a5f0f69a69.zip
hw/rdma: Remove unneeded code that handles more that one port
Device supports only one port, let's remove a dead code that handles more than one port. Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com> Reviewed-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com> Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Diffstat (limited to 'hw/rdma/rdma_rm.h')
-rw-r--r--hw/rdma/rdma_rm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/rdma/rdma_rm.h b/hw/rdma/rdma_rm.h
index a7169b4e89..3c602c04c0 100644
--- a/hw/rdma/rdma_rm.h
+++ b/hw/rdma/rdma_rm.h
@@ -79,7 +79,7 @@ int rdma_rm_get_backend_gid_index(RdmaDeviceResources *dev_res,
static inline union ibv_gid *rdma_rm_get_gid(RdmaDeviceResources *dev_res,
int sgid_idx)
{
- return &dev_res->ports[0].gid_tbl[sgid_idx].gid;
+ return &dev_res->port.gid_tbl[sgid_idx].gid;
}
#endif