lkml.org 
[lkml]   [2018]   [Jan]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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@kernel.org>
> Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com>
> Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
> Acked-by: Selvin Xavier <selvin.xavier@broadcom.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

\
 
 \ /
  Last update: 2018-01-02 22:07    [W:0.029 / U:11.480 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site