All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dmaengine: idxd: No need to clear memory after a dma_alloc_coherent() call
@ 2023-05-28 14:11 Christophe JAILLET
  2023-05-30 15:36 ` Dave Jiang
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Christophe JAILLET @ 2023-05-28 14:11 UTC (permalink / raw)
  To: Fenghua Yu, Dave Jiang, Vinod Koul
  Cc: linux-kernel, kernel-janitors, Christophe JAILLET, dmaengine

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>
---
 drivers/dma/idxd/device.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/dma/idxd/device.c b/drivers/dma/idxd/device.c
index 5abbcc61c528..7c74bc60f582 100644
--- a/drivers/dma/idxd/device.c
+++ b/drivers/dma/idxd/device.c
@@ -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;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread
[parent not found: <20230721073440.5402-1-xujianghui@cdjrlc.com>]

end of thread, other threads:[~2023-08-01 18:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-28 14:11 [PATCH] dmaengine: idxd: No need to clear memory after a dma_alloc_coherent() call Christophe JAILLET
2023-05-30 15:36 ` Dave Jiang
2023-05-30 15:51 ` Fenghua Yu
2023-05-30 15:54 ` Bernd Petrovitsch
2023-05-30 18:46   ` Christophe JAILLET
2023-07-11 16:44 ` Vinod Koul
     [not found] <20230721073440.5402-1-xujianghui@cdjrlc.com>
2023-07-21  7:35 ` sunran001
2023-07-21 16:13   ` Dave Jiang
2023-08-01 18:31   ` Vinod Koul

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.