Skip to content

Commit

Permalink
dmaengine: idxd: No need to clear memory after a dma_alloc_coherent()…
Browse files Browse the repository at this point in the history
… 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>
  • Loading branch information
Christophe JAILLET authored and Vinod Koul committed Jul 12, 2023
1 parent b449c3f commit 4ca95a5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/dma/idxd/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -786,8 +786,6 @@ static int idxd_device_evl_setup(struct idxd_device *idxd)
goto err_alloc;
}

memset(addr, 0, size);

spin_lock(&evl->lock);
evl->log = addr;
evl->dma = dma_addr;
Expand Down

0 comments on commit 4ca95a5

Please sign in to comment.