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>
This commit is contained in:
parent
d623dfd283
commit
6a1096611c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user