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

David Miller davem at davemloft.net
Tue Jan 2 18:56:49 PST 2018


From: Himanshu Jha <himanshujha199640 at gmail.com>
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 at kernel.org>
> Signed-off-by: Himanshu Jha <himanshujha199640 at gmail.com>

Applied.



More information about the linux-arm-kernel mailing list