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

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


On Sun, Dec 31, 2017 at 05:59:00PM +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/vmw_pvrdma/pvrdma_main.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)

Applied to for-next thanks

Jason