Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dmaengine: imx-dma: Remove a redundant memset() call

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>

authored by

Christophe JAILLET and committed by
Vinod Koul
9f7d4718 5aaf9079

-1
-1
drivers/dma/imx-dma.c
··· 750 750 desc = kzalloc(sizeof(*desc), GFP_KERNEL); 751 751 if (!desc) 752 752 break; 753 - memset(&desc->desc, 0, sizeof(struct dma_async_tx_descriptor)); 754 753 dma_async_tx_descriptor_init(&desc->desc, chan); 755 754 desc->desc.tx_submit = imxdma_tx_submit; 756 755 /* txd.flags will be overwritten in prep funcs */