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)
This commit is contained in:
parent
5d4722cd96
commit
6d8e6cd5e1
|
@ -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)
|
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 device_node *np = pdev->dev.of_node;
|
||||||
struct platform_device *cpu_pdev;
|
struct platform_device *cpu_pdev;
|
||||||
struct imx_priv *priv = &card_priv;
|
struct imx_priv *priv = &card_priv;
|
||||||
|
|
Loading…
Reference in a new issue