MLK-11915-08 ASoC: imx-si476x: init fm_np to avoid wild pointer
authorZidan Wang <zidan.wang@freescale.com>
Fri, 27 Nov 2015 06:44:51 +0000 (14:44 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:49:18 +0000 (14:49 -0500)
init fm_np to avoid wild pointer. Reported by Coverity.

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

sound/soc/fsl/imx-si476x.c

index ea9edba..f40280a 100644 (file)
@@ -106,7 +106,7 @@ static int imx_si476x_probe(struct platform_device *pdev)
        struct device_node *ssi_np, *np = pdev->dev.of_node;
        struct platform_device *ssi_pdev;
        struct i2c_client *fm_dev;
-       struct device_node *fm_np;
+       struct device_node *fm_np = NULL;
        int int_port, ext_port, ret;
 
        ret = of_property_read_u32(np, "mux-int-port", &int_port);