ASoC: tegra20-ac97: Remove duplicate error message
Subsystems (3)
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.
Signed-off-by Thierry Reding <[email protected]>
--- sound/soc/tegra/tegra20_ac97.c | 1 - 1 file changed, 1 deletion(-)
sound/soc/tegra/tegra20_ac97.c +0 -1
@@ -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
PATCH 2/2 ASoC: tegra20-ac97: Remove unused variable
In reply to a message not in the archiveWith the conversion to devm_ioremap_resource() the memregion variable is no longer used so it can be dropped.
Signed-off-by Thierry Reding <[email protected]>
--- sound/soc/tegra/tegra20_ac97.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/tegra/tegra20_ac97.c +1 -1
@@ -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
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.