From 368b9a331a01d1d8763ee8419560605aebdbe723 Mon Sep 17 00:00:00 2001 From: Shengjiu Wang Date: Tue, 30 Jan 2018 10:36:05 +0800 Subject: MLK-17472: ASoC: imx-wm8962: fix build warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- sound/soc/fsl/imx-wm8962.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sound/soc/fsl/imx-wm8962.c') 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; -- cgit v1.2.3