RDMA/vmw_pvrdma: Skip zeroing device attrs
authorYuval Shaia <yuval.shaia@oracle.com>
Wed, 20 Mar 2019 14:14:18 +0000 (16:14 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 27 Mar 2019 18:30:43 +0000 (15:30 -0300)
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>
drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c

index 42fe821f8d580e3d0418d944c36d7aaa068a0b7d..8a32e1e435a95dc4089801e30fe93431d09371ed 100644 (file)
@@ -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;