Fabio Estevam
2014-10-07 18:29:55 UTC
of_node_put() supports NULL as its argument, so the initial test is not
necessary.
Signed-off-by: Fabio Estevam <***@freescale.com>
---
sound/soc/codecs/mc13783.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sound/soc/codecs/mc13783.c b/sound/soc/codecs/mc13783.c
index 2c1f1b0..388f90a 100644
--- a/sound/soc/codecs/mc13783.c
+++ b/sound/soc/codecs/mc13783.c
@@ -784,8 +784,7 @@ static int __init mc13783_codec_probe(struct platform_device *pdev)
mc13783_dai_async, ARRAY_SIZE(mc13783_dai_async));
out:
- if (np)
- of_node_put(np);
+ of_node_put(np);
return ret;
}
necessary.
Signed-off-by: Fabio Estevam <***@freescale.com>
---
sound/soc/codecs/mc13783.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sound/soc/codecs/mc13783.c b/sound/soc/codecs/mc13783.c
index 2c1f1b0..388f90a 100644
--- a/sound/soc/codecs/mc13783.c
+++ b/sound/soc/codecs/mc13783.c
@@ -784,8 +784,7 @@ static int __init mc13783_codec_probe(struct platform_device *pdev)
mc13783_dai_async, ARRAY_SIZE(mc13783_dai_async));
out:
- if (np)
- of_node_put(np);
+ of_node_put(np);
return ret;
}
--
1.9.1
1.9.1