]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3ebbca4753bf3850d078cb2d14c05685f1441d08
tree20d19abc60f2452df5561d62805d2a8b6a9b093b
parent151f0df7724b188d88e266bf7889fc1ffb78ade7
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