summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/vmw_pvrdma
diff options
context:
space:
mode:
authorYuval Shaia <yuval.shaia@oracle.com>2019-03-20 15:14:18 +0100
committerJason Gunthorpe <jgg@mellanox.com>2019-03-27 19:30:43 +0100
commit6a1096611cc57ac7307a3121b5df12b07c01a2c6 (patch)
tree6c587c8915574f856d3e8aa9dc81717d84f28867 /drivers/infiniband/hw/vmw_pvrdma
parentIB/mlx5: Compare only index part of a memory window rkey (diff)
downloadlinux-6a1096611cc57ac7307a3121b5df12b07c01a2c6.tar.xz
linux-6a1096611cc57ac7307a3121b5df12b07c01a2c6.zip
RDMA/vmw_pvrdma: Skip zeroing device attrs
Caller already clears props before calling query_device. Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com> Acked-by: Adit Ranadive <aditr@vmware.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/vmw_pvrdma')
-rw-r--r--drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c b/drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c
index 42fe821f8d58..8a32e1e435a9 100644
--- a/drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c
+++ b/drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c
@@ -70,8 +70,6 @@ int pvrdma_query_device(struct ib_device *ibdev,
if (uhw->inlen || uhw->outlen)
return -EINVAL;
- memset(props, 0, sizeof(*props));
-
props->fw_ver = dev->dsr->caps.fw_ver;
props->sys_image_guid = dev->dsr->caps.sys_image_guid;
props->max_mr_size = dev->dsr->caps.max_mr_size;