Skip to contentSkip to conversation

ASoC: sun4i-codec: remove redundant dev_err call in sun4i_codec_probe()

PATCH New Qiheng Lin 1 participant 1 message Apr 9, 2021

Subsystems (4)
lore
Share & tools
lore

Qiheng Lin

author
#0 lore raw

PATCH 1/1 ASoC: sun4i-codec: remove redundant dev_err call in sun4i_codec_probe()

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

---
 sound/soc/sunxi/sun4i-codec.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
sound/soc/sunxi/sun4i-codec.c +1 -3
index 6c13cc84b3fb..00b73b7444b7 100644
@@ -1706,10 +1706,8 @@ static int sun4i_codec_probe(struct platform_device *pdev)
 
 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 	base = devm_ioremap_resource(&pdev->dev, res);
-	if (IS_ERR(base)) {
-		dev_err(&pdev->dev, "Failed to map the registers\n");
+	if (IS_ERR(base))
 		return PTR_ERR(base);
-	}
 
 	quirks = of_device_get_match_data(&pdev->dev);
 	if (quirks == NULL) {