summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@nxp.com>2019-08-26 15:55:14 +0800
committerShengjiu Wang <shengjiu.wang@nxp.com>2019-08-26 17:23:01 +0800
commitacac4b9e38e2be99d1466e03d26b80c08de1638a (patch)
treef1203d8dddc984ff9a16afc6651c455267d3b712 /sound
parent67776cf9ee505e3c7b5d9bf91afbbd083d6389c3 (diff)
MLK-22463-2: ASoC: imx-sii902x: Fix constant variable guards dead code
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>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/fsl/imx-sii902x.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/fsl/imx-sii902x.c b/sound/soc/fsl/imx-sii902x.c
index a282fb684e05..736090937eda 100644
--- a/sound/soc/fsl/imx-sii902x.c
+++ b/sound/soc/fsl/imx-sii902x.c
@@ -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;
}