aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/fsl
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@nxp.com>2022-07-07 19:20:06 +0800
committerMark Brown <broonie@kernel.org>2022-07-07 16:25:04 +0100
commit050237e6b0bea0fafbf7d3d57e717c6fa1e4e819 (patch)
treed231b11b90df367398685ac2fb044a667ba1f0e2 /sound/soc/fsl
parentASoC: cleanups and improvements for jz4740-i2s (diff)
downloadlinux-dev-050237e6b0bea0fafbf7d3d57e717c6fa1e4e819.tar.xz
linux-dev-050237e6b0bea0fafbf7d3d57e717c6fa1e4e819.zip
ASoC: fsl_utils: Don't use plain integer as NULL pointer
Fix sparse warning: sound/soc/fsl/fsl_utils.c:125:31: sparse: warning: Using plain integer as NULL pointer sound/soc/fsl/fsl_utils.c:125:42: sparse: warning: Using plain integer as NULL pointer Fixes: 7bad8125549c ("ASoC: fsl_utils: Add function to handle PLL clock source") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> Link: https://lore.kernel.org/r/1657192806-10569-1-git-send-email-shengjiu.wang@nxp.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/fsl')
-rw-r--r--sound/soc/fsl/fsl_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/fsl_utils.c b/sound/soc/fsl/fsl_utils.c
index b75843e31f00..3e969c7bc1c5 100644
--- a/sound/soc/fsl/fsl_utils.c
+++ b/sound/soc/fsl/fsl_utils.c
@@ -122,7 +122,7 @@ void fsl_asoc_reparent_pll_clocks(struct device *dev, struct clk *clk,
struct clk *pll8k_clk,
struct clk *pll11k_clk, u64 ratio)
{
- struct clk *p, *pll = 0, *npll = 0;
+ struct clk *p, *pll = NULL, *npll = NULL;
bool reparent = false;
int ret = 0;