Commit 6a109661 authored by Yuval Shaia's avatar Yuval Shaia Committed by Jason Gunthorpe

RDMA/vmw_pvrdma: Skip zeroing device attrs

Caller already clears props before calling query_device.
Signed-off-by: default avatarYuval Shaia <yuval.shaia@oracle.com>
Acked-by: default avatarAdit Ranadive <aditr@vmware.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent d623dfd2
...@@ -70,8 +70,6 @@ int pvrdma_query_device(struct ib_device *ibdev, ...@@ -70,8 +70,6 @@ int pvrdma_query_device(struct ib_device *ibdev,
if (uhw->inlen || uhw->outlen) if (uhw->inlen || uhw->outlen)
return -EINVAL; return -EINVAL;
memset(props, 0, sizeof(*props));
props->fw_ver = dev->dsr->caps.fw_ver; props->fw_ver = dev->dsr->caps.fw_ver;
props->sys_image_guid = dev->dsr->caps.sys_image_guid; props->sys_image_guid = dev->dsr->caps.sys_image_guid;
props->max_mr_size = dev->dsr->caps.max_mr_size; props->max_mr_size = dev->dsr->caps.max_mr_size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment