[alsa-devel] [PATCH] ASoC: tegra: fix compile warning in AC'97 driver

Stephen Warren swarren at wwwdotorg.org
Tue Jul 16 19:00:44 CEST 2013

From: Stephen Warren <swarren at nvidia.com>

This fixes the following by deleting dead code:

sound/soc/tegra/tegra20_ac97.c: In function ‘tegra20_ac97_platform_probe’:
sound/soc/tegra/tegra20_ac97.c:435:1: warning: label ‘err_unregister_pcm’ defined but not used [-Wunused-label]

Signed-off-by: Stephen Warren <swarren at nvidia.com>
 sound/soc/tegra/tegra20_ac97.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sound/soc/tegra/tegra20_ac97.c b/sound/soc/tegra/tegra20_ac97.c
index e58233f..87b845f 100644
--- a/sound/soc/tegra/tegra20_ac97.c
+++ b/sound/soc/tegra/tegra20_ac97.c
@@ -432,8 +432,6 @@ static int tegra20_ac97_platform_probe(struct platform_device *pdev)
 	return 0;
-	tegra_pcm_platform_unregister(&pdev->dev);

More information about the Alsa-devel mailing list