Skip to contentSkip to conversation

ASoC: fsl_aud2htx: Remove redundant dev_err call in fsl_aud2htx_probe()

PATCH New yangerkun 1 participant 1 message Apr 8, 2021

Subsystems (3)
lore
Share & tools
lore

yangerkun

author
#0 lore raw

PATCH 1/1 ASoC: fsl_aud2htx: Remove redundant dev_err call in fsl_aud2htx_probe()

There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message.

---
 sound/soc/fsl/fsl_aud2htx.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
sound/soc/fsl/fsl_aud2htx.c +1 -3
index d70d5e75a30c..a328697511f7 100644
@@ -198,10 +198,8 @@ static int fsl_aud2htx_probe(struct platform_device *pdev)
 
 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 	regs = devm_ioremap_resource(&pdev->dev, res);
-	if (IS_ERR(regs)) {
-		dev_err(&pdev->dev, "failed ioremap\n");
+	if (IS_ERR(regs))
 		return PTR_ERR(regs);
-	}
 
 	aud2htx->regmap = devm_regmap_init_mmio(&pdev->dev, regs,
 						&fsl_aud2htx_regmap_config);
Signature · 1 line
2.25.4