Re: [PATCH] ethernet/broadcom: Use zeroing memory allocator than allocator/memset

From: David Miller
Date: Tue Jan 02 2018 - 21:57:03 EST


From: Himanshu Jha <himanshujha199640@xxxxxxxxx>
Date: Sat, 30 Dec 2017 21:14:57 +0530

> 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>

Applied.