diff options
author | Fuqian Huang <huangfq.daxian@gmail.com> | 2019-06-28 01:38:04 +0800 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-07-03 14:27:37 -0300 |
commit | 5d7d78eaecc5c91c9b2001e544a0ae2788d40d1c (patch) | |
tree | 2e4a27e73d66f77811eeb41b212e9ff6a50881f3 /drivers/infiniband/ulp/ipoib | |
parent | 4c44d4634b5c90993fccca9f155347221df6f877 (diff) | |
download | linux-5d7d78eaecc5c91c9b2001e544a0ae2788d40d1c.tar.bz2 |
IB/ipoib: Remove memset after vzalloc in ipoib_cm.c
vzalloc has already zeroed the memory. So a memset is unneeded.
Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/ulp/ipoib')
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib_cm.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_cm.c b/drivers/infiniband/ulp/ipoib/ipoib_cm.c index aa9dcfc36cd3..c59e00a0881f 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_cm.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_cm.c @@ -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); |