MLK-11915-03 ASoC: imx-sii902x: init sii902x_np to avoid wild pointer
authorZidan Wang <zidan.wang@freescale.com>
Fri, 27 Nov 2015 03:10:53 +0000 (11:10 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:49:18 +0000 (14:49 -0500)
init sii902x_np to avoid wild pointer. Reported by Coverity.

Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
(cherry picked from commit 780e27683c38f785ea7f7e07e83b00ffd3c22d78)

sound/soc/fsl/imx-sii902x.c

index 72c407d..7cd19fa 100644 (file)
@@ -172,7 +172,7 @@ static struct snd_soc_ops imx_sii902x_ops = {
 
 static int imx_sii902x_probe(struct platform_device *pdev)
 {
-       struct device_node *cpu_np, *sii902x_np;
+       struct device_node *cpu_np, *sii902x_np = NULL;
        struct platform_device *cpu_pdev;
        struct imx_sii902x_data *data;
        int ret;