ASoC: tegra: Use NULL instead of 0 for pointers
authorSachin Kamat <sachin.kamat@linaro.org>
Thu, 24 Jan 2013 09:21:17 +0000 (14:51 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 24 Jan 2013 10:55:16 +0000 (18:55 +0800)
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

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/tegra/tegra30_ahub.c

index f354dc390a0be4c1b57ae473f8b357f9c66cb632..dd146f10fef2acc86737640d57caffe2af48de34 100644 (file)
@@ -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;
 }