diff options
author | Shengjiu Wang <shengjiu.wang@nxp.com> | 2018-01-30 10:36:05 +0800 |
---|---|---|
committer | Dong Aisheng <aisheng.dong@nxp.com> | 2019-11-25 15:50:30 +0800 |
commit | 368b9a331a01d1d8763ee8419560605aebdbe723 (patch) | |
tree | ab76b2644fe420f6ad581ca230999a17e2d57510 /sound/soc/fsl/imx-wm8962.c | |
parent | f0511282800ec31cb9398f2506e77ed12e3f5a2f (diff) |
MLK-17472: ASoC: imx-wm8962: fix build warning
sound/soc/fsl/imx-wm8962.c: In function ‘imx_wm8962_probe’:
sound/soc/fsl/imx-wm8962.c:810:2: warning: ‘cpu_np’ may be used uninitialized in this function [-Wmaybe-uninitialized]
of_node_put(cpu_np);
^~~~~~~~~~~~~~~~~~~
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Diffstat (limited to 'sound/soc/fsl/imx-wm8962.c')
-rw-r--r-- | sound/soc/fsl/imx-wm8962.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/imx-wm8962.c b/sound/soc/fsl/imx-wm8962.c index b532b46a55e0..9bd0fbdcad6a 100644 --- a/sound/soc/fsl/imx-wm8962.c +++ b/sound/soc/fsl/imx-wm8962.c @@ -567,7 +567,7 @@ static int be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, static int imx_wm8962_probe(struct platform_device *pdev) { struct device_node *np = pdev->dev.of_node; - struct device_node *cpu_np, *codec_np = NULL; + struct device_node *cpu_np = NULL, *codec_np = NULL; struct platform_device *cpu_pdev; struct imx_priv *priv = &card_priv; struct i2c_client *codec_dev; |