crypto: Use zeroing memory allocator instead of allocator/memset
authorHimanshu Jha <himanshujha199640@gmail.com>
Sun, 31 Dec 2017 12:24:23 +0000 (17:54 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 12 Jan 2018 12:02:56 +0000 (23:02 +1100)
commit75d68369b544acc5d14c18a827654dfff248d09d
tree28a59ee3d94752e1f90f4e76399c7da10d99f224
parentb7dac3731848923399c7a92563e3754e8f3b5236
crypto: Use zeroing memory allocator instead of allocator/memset

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.

Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/amcc/crypto4xx_core.c
drivers/crypto/ixp4xx_crypto.c