diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2023-05-28 16:11:54 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2023-07-12 18:54:01 +0200 |
commit | 4ca95a5b220c901f9c2402532ef78bf5aaf7d35d (patch) | |
tree | c80e515200313e53c6138832004c45c899b493cf | |
parent | dmaengine: idxd: Modify ABI documentation for attribute pasid_enabled (diff) | |
download | linux-4ca95a5b220c901f9c2402532ef78bf5aaf7d35d.tar.xz linux-4ca95a5b220c901f9c2402532ef78bf5aaf7d35d.zip |
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>
-rw-r--r-- | drivers/dma/idxd/device.c | 2 |
1 files changed, 0 insertions, 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; |