Skip to content

Commit 66d9c1c

Browse files
Yellow-Payherbertx
authored andcommitted
crypto: amcc - remove memset after dma_alloc_coherent
In commit af7ddd8 ("Merge tag 'dma-mapping-4.21' of git://git.infradead.org/users/hch/dma-mapping"), dma_alloc_coherent has already zeroed the memory. So memset is not needed. Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 600bac0 commit 66d9c1c

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎drivers/crypto/amcc/crypto4xx_core.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ static u32 crypto4xx_build_pdr(struct crypto4xx_device *dev)
191191
dev->pdr_pa);
192192
return -ENOMEM;
193193
}
194-
memset(dev->pdr, 0, sizeof(struct ce_pd) * PPC4XX_NUM_PD);
195194
dev->shadow_sa_pool = dma_alloc_coherent(dev->core_dev->device,
196195
sizeof(union shadow_sa_buf) * PPC4XX_NUM_PD,
197196
&dev->shadow_sa_pool_pa,

0 commit comments

Comments
 (0)