qed: Use zeroing memory allocator than allocator/memset
authorHimanshu Jha <himanshujha199640@gmail.com>
Sat, 30 Dec 2017 15:37:04 +0000 (21:07 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Jan 2018 02:55:43 +0000 (21:55 -0500)
commit5f58dff96755b9bfa13be834a2cca9e4778df20d
tree20d19abc60f2452df5561d62805d2a8b6a9b093b
parent3288ed69c06bf720afc99ce3850e8ca746376ad1
qed: Use zeroing memory allocator than allocator/memset

Use dma_zalloc_coherent and vzalloc 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>
Acked-by: Tomer Tayar <Tomer.Tayar@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_cxt.c
drivers/net/ethernet/qlogic/qed/qed_l2.c