summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorZidan Wang <zidan.wang@freescale.com>2015-11-27 14:44:51 +0800
committerNitin Garg <nitin.garg@nxp.com>2016-01-14 11:02:28 -0600
commit356a08b9e2ce55457e5452dc50c594b36378821a (patch)
treecc78980a139504fb09f674f37ca32b738be0adee /sound
parent24e980dab262f62fcffbd7824a8e5463df8769c2 (diff)
MLK-11915-08 ASoC: imx-si476x: init fm_np to avoid wild pointer
init fm_np to avoid wild pointer. Reported by Coverity. Signed-off-by: Zidan Wang <zidan.wang@freescale.com> (cherry picked from commit dea49f320f33e1f723301a0bfa18573c0f7b5fb1)
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/fsl/imx-si476x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/imx-si476x.c b/sound/soc/fsl/imx-si476x.c
index ea9edba6f6e1..f40280a39c0a 100644
--- a/sound/soc/fsl/imx-si476x.c
+++ b/sound/soc/fsl/imx-si476x.c
@@ -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);