Re: [PATCH] IB/mthca: Use zeroing memory allocator than allocator/memset

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


On Sun, Dec 31, 2017 at 06:04:10PM +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/mthca/mthca_memfree.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)

Applied to for-next thanks

Jason