Skip to contentSkip to conversation

ASoC: tegra20-ac97: Remove duplicate error message

PATCH Applied Thierry Reding 2 participants 3 messages Jun 28, 2013 – Jun 29, 2013 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ASoC: tegra20-ac97: Remove duplicate error message

devm_ioremap_resource() already outputs an error message when any of the operations it performs fails, so the duplicate in the caller can be removed.

---
 sound/soc/tegra/tegra20_ac97.c | 1 -
 1 file changed, 1 deletion(-)
sound/soc/tegra/tegra20_ac97.c +0 -1
index 9043626d..c1f08f3 100644
@@ -344,7 +344,6 @@ static int tegra20_ac97_platform_probe(struct platform_device *pdev)
 	regs = devm_ioremap_resource(&pdev->dev, mem);
 	if (IS_ERR(regs)) {
 		ret = PTR_ERR(regs);
-		dev_err(&pdev->dev, "ioremap failed: %d\n", ret);
 		goto err_clk_put;
 	}
 
Signature · 1 line
1.8.3.1
#2 lore raw

PATCH 2/2 ASoC: tegra20-ac97: Remove unused variable

In reply to a message not in the archive

With the conversion to devm_ioremap_resource() the memregion variable is no longer used so it can be dropped.

---
 sound/soc/tegra/tegra20_ac97.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/tegra/tegra20_ac97.c +1 -1
index c1f08f3..0fef1b4 100644
@@ -313,7 +313,7 @@ static const struct regmap_config tegra20_ac97_regmap_config = {
 static int tegra20_ac97_platform_probe(struct platform_device *pdev)
 {
 	struct tegra20_ac97 *ac97;
-	struct resource *mem, *memregion;
+	struct resource *mem;
 	u32 of_dma[2];
 	void __iomem *regs;
 	int ret = 0;
Signature · 1 line
1.8.3.1
maintainer Applied
#3 lore raw
In reply to Thierry Reding
Quoted 3 lines · Thierry Reding

devm_ioremap_resource() already outputs an error message when any of the operations it performs fails, so the duplicate in the caller can be removed.

Applied both, thanks.