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: fsl-edma: Remove redundant check in fsl_edma_free_chan_resources()

clk_disable_unprepare() is safe to call with a NULL clk, the
FSL_EDMA_DRV_HAS_CHCLK check is reduntante. Clean up redundant checks.

Suggested-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Zhen Ni <zhen.ni@easystack.cn>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20251014024730.751237-1-zhen.ni@easystack.cn
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Zhen Ni and committed by
Vinod Koul
490c367b 6de23f81

+1 -2
+1 -2
drivers/dma/fsl-edma-common.c
··· 905 905 fsl_chan->is_sw = false; 906 906 fsl_chan->srcid = 0; 907 907 fsl_chan->is_remote = false; 908 - if (fsl_edma_drvflags(fsl_chan) & FSL_EDMA_DRV_HAS_CHCLK) 909 - clk_disable_unprepare(fsl_chan->clk); 908 + clk_disable_unprepare(fsl_chan->clk); 910 909 } 911 910 912 911 void fsl_edma_cleanup_vchan(struct dma_device *dmadev)