projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5aaf907
)
dmaengine: imx-dma: Remove a redundant memset() call
author
Christophe JAILLET
<christophe.jaillet@wanadoo.fr>
Mon, 13 Mar 2023 21:52:31 +0000
(22:52 +0100)
committer
Vinod Koul
<vkoul@kernel.org>
Fri, 17 Mar 2023 17:40:46 +0000
(23:10 +0530)
The desc->desc structure is already zeroed when 'desc' is kzalloc()'ed.
There is no need to clear it twice.
Remove the redundant memset().
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link:
https://lore.kernel.org/r/95a81d623bffde2e5d14e22fad7e8c9a9a7203f6.1678743528.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/imx-dma.c
patch
|
blob
|
history
diff --git
a/drivers/dma/imx-dma.c
b/drivers/dma/imx-dma.c
index 80086977973f14cfc0c58d3594adc29234e0d70b..f040751690af1f0ee19ddcbe5eda9dde0e3b64a0 100644
(file)
--- a/
drivers/dma/imx-dma.c
+++ b/
drivers/dma/imx-dma.c
@@
-750,7
+750,6
@@
static int imxdma_alloc_chan_resources(struct dma_chan *chan)
desc = kzalloc(sizeof(*desc), GFP_KERNEL);
if (!desc)
break;
- memset(&desc->desc, 0, sizeof(struct dma_async_tx_descriptor));
dma_async_tx_descriptor_init(&desc->desc, chan);
desc->desc.tx_submit = imxdma_tx_submit;
/* txd.flags will be overwritten in prep funcs */