]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit97da9ba8580d925914c38950f9accb58c70855e1
tree28a59ee3d94752e1f90f4e76399c7da10d99f224
parent03821e1745b854769604af8f877cee7895a77665
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