Message ID | 1440295633.12294.0.camel@ingics.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 5e9a3fcfa2ca10e3ff76938fe9a12515ffa41003 |
Headers | show |
On Sun, Aug 23, 2015 at 7:37 AM, Axel Lin <axel.lin@ingics.com> wrote: > 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> > --- > sound/soc/tegra/tegra20_spdif.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/sound/soc/tegra/tegra20_spdif.c b/sound/soc/tegra/tegra20_spdif.c > index 66237bc..0809b1e 100644 > --- a/sound/soc/tegra/tegra20_spdif.c > +++ b/sound/soc/tegra/tegra20_spdif.c > @@ -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); > -- > 2.1.0 > Thanks for sending this patch. >
diff --git a/sound/soc/tegra/tegra20_spdif.c b/sound/soc/tegra/tegra20_spdif.c index 66237bc..0809b1e 100644 --- a/sound/soc/tegra/tegra20_spdif.c +++ b/sound/soc/tegra/tegra20_spdif.c @@ -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);
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> --- sound/soc/tegra/tegra20_spdif.c | 2 -- 1 file changed, 2 deletions(-)