ASoC: fsl: eukrea-tlv320: Delete unneeded test before of_node_put
authorFabio Estevam <fabio.estevam@freescale.com>
Tue, 7 Oct 2014 18:29:57 +0000 (15:29 -0300)
committerMark Brown <broonie@kernel.org>
Mon, 20 Oct 2014 11:20:15 +0000 (12:20 +0100)
of_node_put() supports NULL as its argument, so the initial test is not
necessary.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/eukrea-tlv320.c

index eb093d5b85c4cce3f0bf10616aeb1fcc61f859e9..dd931fa5a8131c15754c26ff2dc178129b1229a2 100644 (file)
@@ -217,8 +217,7 @@ static int eukrea_tlv320_probe(struct platform_device *pdev)
 err:
        if (ret)
                dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n", ret);
-       if (np)
-               of_node_put(ssi_np);
+       of_node_put(ssi_np);
 
        return ret;
 }