Re: [PATCH] RDMA/bnxt_re: Use zeroing memory allocator than allocator/memset

From: Jason Gunthorpe
Date: Tue Jan 02 2018 - 16:06:45 EST


On Sun, Dec 31, 2017 at 06:02:38PM +0530, Himanshu Jha wrote:
> Use dma_zalloc_coherent for allocating zeroed
> memory and remove unnecessary memset function.
>
> Done using Coccinelle.
> Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci
> 0-day tested with no failures.
>
> Suggested-by: Luis R. Rodriguez <mcgrof@xxxxxxxxxx>
> Signed-off-by: Himanshu Jha <himanshujha199640@xxxxxxxxx>
> drivers/infiniband/hw/bnxt_re/qplib_res.c | 9 ++++-----
> 1 file changed, 4 insertions(+), 5 deletions(-)

Applied to for-next thanks

Jason