MLK-22463-2: ASoC: imx-sii902x: Fix constant variable guards dead code
authorShengjiu Wang <shengjiu.wang@nxp.com>
Mon, 26 Aug 2019 07:55:14 +0000 (15:55 +0800)
committerShengjiu Wang <shengjiu.wang@nxp.com>
Mon, 26 Aug 2019 09:12:57 +0000 (17:12 +0800)
Fix constant variable guards dead code which is reported by coverity.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
sound/soc/fsl/imx-sii902x.c

index a282fb6..7360909 100644 (file)
@@ -124,7 +124,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 = NULL;
+       struct device_node *cpu_np;
        struct platform_device *cpu_pdev;
        struct imx_sii902x_data *data;
        int ret;
@@ -181,8 +181,6 @@ static int imx_sii902x_probe(struct platform_device *pdev)
 fail:
        if (cpu_np)
                of_node_put(cpu_np);
-       if (sii902x_np)
-               of_node_put(sii902x_np);
        return ret;
 }