Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 19a408ef authored by Wei Hu (Xavier)'s avatar Wei Hu (Xavier) Committed by Doug Ledford
Browse files

IB/hns: Delete the redundant memset operation



It deleted the redundant memset operation because the memory allocated
by ib_alloc_device has been set zero.

Signed-off-by: default avatarWei Hu (Xavier) <xavier.huwei@huawei.com>
Signed-off-by: default avatarSalil Mehta <salil.mehta@huawei.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 9daed0af
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -843,9 +843,6 @@ static int hns_roce_probe(struct platform_device *pdev)
	if (!hr_dev)
		return -ENOMEM;

	memset((u8 *)hr_dev + sizeof(struct ib_device), 0,
		sizeof(struct hns_roce_dev) - sizeof(struct ib_device));

	hr_dev->pdev = pdev;
	platform_set_drvdata(pdev, hr_dev);