[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180102210558.GA7614@ziepe.ca>
Date: Tue, 2 Jan 2018 14:05:58 -0700
From: Jason Gunthorpe <jgg@...pe.ca>
To: Himanshu Jha <himanshujha199640@...il.com>
Cc: dledford@...hat.com, devesh.sharma@...adcom.com,
selvin.xavier@...adcom.com, linux-rdma@...r.kernel.org,
linux-kernel@...r.kernel.org, mcgrof@...nel.org
Subject: Re: [PATCH] IB/ocrdma: Use zeroing memory allocator than
allocator/memset
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-by: Luis R. Rodriguez <mcgrof@...nel.org>
> Signed-off-by: Himanshu Jha <himanshujha199640@...il.com>
> Reviewed-by: Leon Romanovsky <leonro@...lanox.com>
> Acked-by: Selvin Xavier <selvin.xavier@...adcom.com>
> drivers/infiniband/hw/ocrdma/ocrdma_hw.c | 19 +++++++------------
> drivers/infiniband/hw/ocrdma/ocrdma_stats.c | 6 ++----
> drivers/infiniband/hw/ocrdma/ocrdma_verbs.c | 8 +++-----
> 3 files changed, 12 insertions(+), 21 deletions(-)
Applied to for-next thanks
Jason
Powered by blists - more mailing lists