OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c44d46
)
IB/ipoib: Remove memset after vzalloc in ipoib_cm.c
author
Fuqian Huang
<huangfq.daxian@gmail.com>
Thu, 27 Jun 2019 17:38:04 +0000
(
01:38
+0800)
committer
Jason Gunthorpe
<jgg@mellanox.com>
Wed, 3 Jul 2019 17:27:37 +0000
(14:27 -0300)
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>
drivers/infiniband/ulp/ipoib/ipoib_cm.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/ulp/ipoib/ipoib_cm.c
b/drivers/infiniband/ulp/ipoib/ipoib_cm.c
index
aa9dcfc
..
c59e00a
100644
(file)
--- 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);