]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ASoC: tegra: Fix unused variable 'spdif' warning
authorAxel Lin <axel.lin@ingics.com>
Sun, 23 Aug 2015 02:07:13 +0000 (10:07 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 25 Aug 2015 09:33:20 +0000 (10:33 +0100)
Fix below build warning:
  CC [M]  sound/soc/tegra/tegra20_spdif.o
sound/soc/tegra/tegra20_spdif.c: In function 'tegra20_spdif_platform_remove':
sound/soc/tegra/tegra20_spdif.c:361:24: warning: unused variable 'spdif' [-Wunused-variable]

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/tegra/tegra20_spdif.c

index 66237bc44033910fd73a02604d283a2641f58231..0809b1ec1171078e06d4a3eb33df90854e92621f 100644 (file)
@@ -358,8 +358,6 @@ err_pm_disable:
 
 static int tegra20_spdif_platform_remove(struct platform_device *pdev)
 {
-       struct tegra20_spdif *spdif = dev_get_drvdata(&pdev->dev);
-
        pm_runtime_disable(&pdev->dev);
        if (!pm_runtime_status_suspended(&pdev->dev))
                tegra20_spdif_runtime_suspend(&pdev->dev);