]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: virt-dma: use vchan_vdesc_fini() to free descriptors
authorSascha Hauer <s.hauer@pengutronix.de>
Mon, 16 Dec 2019 10:53:25 +0000 (11:53 +0100)
committerVinod Koul <vkoul@kernel.org>
Thu, 26 Dec 2019 04:34:18 +0000 (10:04 +0530)
commit9b163527242c6a7bd1e686913673644901a82179
tree20793f06e527d6d7e741db3246a021f5e1ab1173
parent8f2a9b27f8cfd3de64e7ff0adc52da0a8cbafb9e
dmaengine: virt-dma: use vchan_vdesc_fini() to free descriptors

vchan_dma_desc_free_list() basically open codes vchan_vdesc_fini() in its
loop body. Call it directly rather than duplicating the code.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Tested-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Link: https://lore.kernel.org/r/20191216105328.15198-7-s.hauer@pengutronix.de
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/virt-dma.c