Skip to content

Commit e773294

Browse files
Larisa Grigorevinodkoul
authored andcommitted
dmaengine: fsl-edma: remove FSL_EDMA_DRV_SPLIT_REG check when parsing muxbase
Clean up dead code. dmamuxs is always 0 when FSL_EDMA_DRV_SPLIT_REG set. So it is redundant to check FSL_EDMA_DRV_SPLIT_REG again in the for loop because it will never enter for loop. Signed-off-by: Larisa Grigore <larisa.grigore@oss.nxp.com> Reviewed-by: Frank Li <Frank.Li@nxp.com> Link: https://lore.kernel.org/r/20241219102415.1208328-3-larisa.grigore@oss.nxp.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent a4b00f5 commit e773294

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/dma/fsl-edma-main.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -517,10 +517,6 @@ static int fsl_edma_probe(struct platform_device *pdev)
517517
for (i = 0; i < fsl_edma->drvdata->dmamuxs; i++) {
518518
char clkname[32];
519519

520-
/* eDMAv3 mux register move to TCD area if ch_mux exist */
521-
if (drvdata->flags & FSL_EDMA_DRV_SPLIT_REG)
522-
break;
523-
524520
fsl_edma->muxbase[i] = devm_platform_ioremap_resource(pdev,
525521
1 + i);
526522
if (IS_ERR(fsl_edma->muxbase[i])) {

0 commit comments

Comments
 (0)