1
0
Fork 0

MLK-11915-05 ASoC: imx-wm8958: init codec_np to avoid wild pointer

init codec_np to avoid wild pointer. Reported by Coverity.

Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
(cherry picked from commit 76665930654867cf38a86ba747a9f8a5bf2665e2)
pull/10/head
Zidan Wang 2015-11-27 11:14:36 +08:00 committed by Jason Liu
parent 5d4722cd96
commit 6d8e6cd5e1
1 changed files with 1 additions and 1 deletions

View File

@ -403,7 +403,7 @@ static int imx_wm8958_set_bias_level_post(struct snd_soc_card *card,
static int imx_wm8958_probe(struct platform_device *pdev)
{
struct device_node *cpu_np, *codec_np, *gpr_np;
struct device_node *cpu_np, *codec_np = NULL, *gpr_np;
struct device_node *np = pdev->dev.of_node;
struct platform_device *cpu_pdev;
struct imx_priv *priv = &card_priv;