[alsa-devel] [PATCH 4/5] ASoC: tegra: Use NULL instead of 0 for pointers
Sachin Kamat
sachin.kamat at linaro.org
Mon Jan 21 10:29:25 CET 2013
Fixes the following sparse warnings:
sound/soc/tegra/tegra30_ahub.c:583:16: warning:
Using plain integer as NULL pointer
sound/soc/tegra/tegra30_ahub.c:600:16: warning:
Using plain integer as NULL pointer
Cc: Stephen Warren <swarren at nvidia.com>
Signed-off-by: Sachin Kamat <sachin.kamat at linaro.org>
---
sound/soc/tegra/tegra30_ahub.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/tegra/tegra30_ahub.c b/sound/soc/tegra/tegra30_ahub.c
index ad217cc..89c7423 100644
--- a/sound/soc/tegra/tegra30_ahub.c
+++ b/sound/soc/tegra/tegra30_ahub.c
@@ -580,7 +580,7 @@ err_clk_put_apbif:
clk_put(ahub->clk_apbif);
err_clk_put_d_audio:
clk_put(ahub->clk_d_audio);
- ahub = 0;
+ ahub = NULL;
err:
return ret;
}
@@ -597,7 +597,7 @@ static int tegra30_ahub_remove(struct platform_device *pdev)
clk_put(ahub->clk_apbif);
clk_put(ahub->clk_d_audio);
- ahub = 0;
+ ahub = NULL;
return 0;
}
--
1.7.4.1
More information about the Alsa-devel
mailing list