dmaengine: idxd: No need to clear memory after a dma_alloc_coherent() call
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 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 Ran Sun <[email protected]>
--- drivers/dma/idxd/device.c | 1 - 1 file changed, 1 deletion(-)
drivers/dma/idxd/device.c +0 -1
@@ -792,7 +792,6 @@ static int idxd_device_evl_setup(struct idxd_device *idxd) evl->log_size = size; evl->bmap = bmap; -memset (&evlcfg,0 ,sizeof (evlcfg)); evlcfg.bits[0 ] = dma_addr &GENMASK (63 ,12 ); evlcfg.size = evl->size;
Quoted 4 lines · On 7/21/23 00:35, [email protected] wrote:
dma_alloc_coherent()already clear the allocated memory, there is no need to explicitly callmemset().Signed-off-by Ran Sun <[email protected]>
Reviewed-by Dave Jiang <[email protected]>
Quoted 16 lines
--- drivers/dma/idxd/device.c | 1 - 1 file changed, 1 deletion(-)drivers/dma/idxd/device.c +0
-1@@ -792,7 +792,6 @@ static int idxd_device_evl_setup(struct idxd_device *idxd) evl->log_size = size; evl->bmap = bmap; - memset(&evlcfg, 0, sizeof(evlcfg)); evlcfg.bits[0] = dma_addr & GENMASK(63, 12); evlcfg.size = evl->size;
Vinod Koul
maintainerQuoted 2 lines · On 21-07-23, 07:35, [email protected] wrote:
dma_alloc_coherent()already clear the allocated memory, there is no need to explicitly callmemset().
Please fix the sender name and resend. it should match s-o-b name
Quoted 18 lines
Signed-off-by Ran Sun <[email protected]>--- drivers/dma/idxd/device.c | 1 - 1 file changed, 1 deletion(-)drivers/dma/idxd/device.c +0
-1@@ -792,7 +792,6 @@ static int idxd_device_evl_setup(struct idxd_device *idxd) evl->log_size = size; evl->bmap = bmap; -memset (&evlcfg,0 ,sizeof (evlcfg)); evlcfg.bits[0 ] = dma_addr &GENMASK (63 ,12 ); evlcfg.size = evl->size;
Signature · 1 line
~Vinod