dmaengine: fsl-edma: Remove redundant check in fsl_edma_free_chan_resources()
Subsystems (3)
PATCH 1/1 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 <[email protected]>
Signed-off-by Zhen Ni <[email protected]>
--- drivers/dma/fsl-edma-common.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/dma/fsl-edma-common.c +1 -2
@@ -884,8 +884,7 @@ void fsl_edma_free_chan_resources(struct dma_chan *chan) fsl_chan->is_sw = false; fsl_chan->srcid =0 ; fsl_chan->is_remote = false; -if (fsl_edma_drvflags (fsl_chan) &FSL_EDMA_DRV_HAS_CHCLK ) -clk_disable_unprepare (fsl_chan->clk); +clk_disable_unprepare (fsl_chan->clk); }void fsl_edma_cleanup_vchan (struct dma_device *dmadev)
Signature · 1 line
2.20.1
Quoted 6 lines · Zhen Ni
clk_disable_unprepare()is safe to call with a NULL clk, theFSL_EDMA_DRV_HAS_CHCLKcheck is reduntante. Clean up redundant checks.Suggested-by Frank Li <[email protected]>Signed-off-by Zhen Ni <[email protected]>---
Reviewed-by Frank Li <[email protected]>
Quoted 20 lines
drivers/dma/fsl-edma-common.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/dma/fsl-edma-common.c +1
-3@@ -884,8 +884,7 @@ void fsl_edma_free_chan_resources(struct dma_chan *chan) fsl_chan->is_sw = false; fsl_chan->srcid =0 ; fsl_chan->is_remote = false; -if (fsl_edma_drvflags (fsl_chan) &FSL_EDMA_DRV_HAS_CHCLK ) -clk_disable_unprepare (fsl_chan->clk); +clk_disable_unprepare (fsl_chan->clk); }void fsl_edma_cleanup_vchan (struct dma_device *dmadev) --2.20.1
Quoted 4 lines · Zhen Ni
clk_disable_unprepare()is safe to call with a NULL clk, theFSL_EDMA_DRV_HAS_CHCLKcheck is reduntante. Clean up redundant checks.
Applied, thanks!
[1/1] dmaengine: fsl-edma: Remove redundant check in fsl_edma_free_chan_resources()
commit: 490c367b5fbcba6bb653077312c8ef477adf79b5
Best regards,
Signature · 1 line
~Vinod