diff options
author | Zidan Wang <zidan.wang@freescale.com> | 2015-11-27 11:10:53 +0800 |
---|---|---|
committer | Dong Aisheng <aisheng.dong@nxp.com> | 2019-11-25 15:50:00 +0800 |
commit | cf5acdaf4b2e1823879132ba129867c0a376f67d (patch) | |
tree | 90f4283a840d878be2909a4d8d0cad6d35affd98 /sound/soc/fsl/imx-sii902x.c | |
parent | 5db31deedbe6944354932ae36cea5fba101c452e (diff) |
MLK-11915-03 ASoC: imx-sii902x: init sii902x_np to avoid wild pointer
init sii902x_np to avoid wild pointer. Reported by Coverity.
Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
(cherry picked from commit 780e27683c38f785ea7f7e07e83b00ffd3c22d78)
Diffstat (limited to 'sound/soc/fsl/imx-sii902x.c')
-rw-r--r-- | sound/soc/fsl/imx-sii902x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/imx-sii902x.c b/sound/soc/fsl/imx-sii902x.c index 72c407dd4f9c..7cd19faa8617 100644 --- a/sound/soc/fsl/imx-sii902x.c +++ b/sound/soc/fsl/imx-sii902x.c @@ -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; |