summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/cxgb4/provider.c
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@mellanox.com>2019-05-20 08:54:31 +0200
committerJason Gunthorpe <jgg@mellanox.com>2019-05-27 19:32:17 +0200
commit34d568930b87e0dd32c5dbe83a835959f2fc6107 (patch)
tree92c9dcc9889cfa8003859c842ec89266a05fbbd0 /drivers/infiniband/hw/cxgb4/provider.c
parentRDMA/cxgb3: Delete and properly mark unimplemented resize CQ function (diff)
downloadlinux-34d568930b87e0dd32c5dbe83a835959f2fc6107.tar.xz
linux-34d568930b87e0dd32c5dbe83a835959f2fc6107.zip
RDMA/cxgb4: Use sizeof() notation
Convert various sizeof call sites to be written in standard format sizeof(). Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/cxgb4/provider.c')
-rw-r--r--drivers/infiniband/hw/cxgb4/provider.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/cxgb4/provider.c b/drivers/infiniband/hw/cxgb4/provider.c
index 74b795642fca..8ed75b141521 100644
--- a/drivers/infiniband/hw/cxgb4/provider.c
+++ b/drivers/infiniband/hw/cxgb4/provider.c
@@ -271,7 +271,6 @@ static int c4iw_query_device(struct ib_device *ibdev, struct ib_device_attr *pro
return -EINVAL;
dev = to_c4iw_dev(ibdev);
- memset(props, 0, sizeof *props);
memcpy(&props->sys_image_guid, dev->rdev.lldi.ports[0]->dev_addr, 6);
props->hw_ver = CHELSIO_CHIP_RELEASE(dev->rdev.lldi.adapter_type);
props->fw_ver = dev->rdev.lldi.fw_vers;