Skip to content

Commit

Permalink
ASoC: tegra: Use NULL instead of 0 for pointers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sachin Kamat authored and Mark Brown committed Jan 24, 2013
1 parent d58579e commit ecb2c17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/tegra/tegra30_ahub.c
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ static int tegra30_ahub_probe(struct platform_device *pdev)
clk_put(ahub->clk_apbif);
err_clk_put_d_audio:
clk_put(ahub->clk_d_audio);
ahub = 0;
ahub = NULL;
err:
return ret;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit ecb2c17

Please sign in to comment.