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

Commit 5d7d78ea authored by Fuqian Huang's avatar Fuqian Huang Committed by Jason Gunthorpe
Browse files

IB/ipoib: Remove memset after vzalloc in ipoib_cm.c



vzalloc has already zeroed the memory.  So a memset is unneeded.

Signed-off-by: default avatarFuqian Huang <huangfq.daxian@gmail.com>
Reviewed-by: default avatarJason Gunthorpe <jgg@mellanox.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 4c44d463
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1153,7 +1153,6 @@ static int ipoib_cm_tx_init(struct ipoib_cm_tx *p, u32 qpn,
		ret = -ENOMEM;
		goto err_tx;
	}
	memset(p->tx_ring, 0, ipoib_sendq_size * sizeof(*p->tx_ring));

	p->qp = ipoib_cm_create_tx_qp(p->dev, p);
	memalloc_noio_restore(noio_flag);