crypto: ccp - Replace dma_pool_alloc + memset with dma_pool_zalloc
authorChuhong Yuan <hslester96@gmail.com>
Thu, 18 Jul 2019 13:16:09 +0000 (21:16 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 27 Jul 2019 11:08:33 +0000 (21:08 +1000)
commitbfb5eb084ae93eb86d3b088c301500db138963e5
tree99ebecf43627d16ac9a27dc6b6cbc36f376f4153
parent6ed01097f4378199614fe625495657af7c601cea
crypto: ccp - Replace dma_pool_alloc + memset with dma_pool_zalloc

Use dma_pool_zalloc instead of using dma_pool_alloc to allocate
memory and then zeroing it with memset 0.
This simplifies the code.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Acked-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/ccp-ops.c