mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-17 05:45:20 +00:00
RDMA/bnxt_re: remove unnecessary call to memset
call to memset to assign 0 value immediately after allocating memory with kzalloc is unnecesaary as kzalloc allocates the memory filled with 0 value. Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com> Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
parent
d518a44d31
commit
2d72d6c4ec
@ -911,7 +911,6 @@ static struct bnxt_re_ah *bnxt_re_create_shadow_qp_ah
|
||||
if (!ah)
|
||||
return NULL;
|
||||
|
||||
memset(ah, 0, sizeof(*ah));
|
||||
ah->rdev = rdev;
|
||||
ah->qplib_ah.pd = &pd->qplib_pd;
|
||||
|
||||
@ -958,7 +957,6 @@ static struct bnxt_re_qp *bnxt_re_create_shadow_qp
|
||||
if (!qp)
|
||||
return NULL;
|
||||
|
||||
memset(qp, 0, sizeof(*qp));
|
||||
qp->rdev = rdev;
|
||||
|
||||
/* Initialize the shadow QP structure from the QP1 values */
|
||||
|
Loading…
x
Reference in New Issue
Block a user