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

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
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;