projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b449c3f
)
dmaengine: idxd: No need to clear memory after a dma_alloc_coherent() call
author
Christophe JAILLET
<christophe.jaillet@wanadoo.fr>
Sun, 28 May 2023 14:11:54 +0000
(16:11 +0200)
committer
Vinod Koul
<vkoul@kernel.org>
Wed, 12 Jul 2023 16:54:01 +0000
(22:24 +0530)
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>
drivers/dma/idxd/device.c
patch
|
blob
|
history
diff --git
a/drivers/dma/idxd/device.c
b/drivers/dma/idxd/device.c
index
5abbcc6
..
7c74bc6
100644
(file)
--- 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;