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

2018-01-02 Thread Jason Gunthorpe
On Sat, Dec 30, 2017 at 09:09:56PM +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. > > Suggeste

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

2018-01-01 Thread Selvin Xavier
On Sun, Dec 31, 2017 at 5:42 PM, Leon Romanovsky wrote: > On Sat, Dec 30, 2017 at 09:09:56PM +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/kzal

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

2017-12-31 Thread Leon Romanovsky
On Sat, Dec 30, 2017 at 09:09:56PM +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-