Skip to content

Commit 4ca95a5

Browse files
tititiou36vinodkoul
authored andcommitted
dmaengine: idxd: No need to clear memory after a dma_alloc_coherent() call
dma_alloc_coherent() already clear the allocated memory, there is no need to explicitly call memset(). Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Acked-by: Fenghua Yu <fenghua.yu@intel.com> Acked-by: Dave Jiang <dave.jiang@intel.com> Link: https://lore.kernel.org/r/f44be04317387f8936d31d5470963541615f30ef.1685283065.git.christophe.jaillet@wanadoo.fr Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent b449c3f commit 4ca95a5

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/dma/idxd/device.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -786,8 +786,6 @@ static int idxd_device_evl_setup(struct idxd_device *idxd)
786786
goto err_alloc;
787787
}
788788

789-
memset(addr, 0, size);
790-
791789
spin_lock(&evl->lock);
792790
evl->log = addr;
793791
evl->dma = dma_addr;

0 commit comments

Comments
 (0)