All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] ASoC: mc13783: Delete unneeded test before of_node_put
@ 2014-10-07 18:29 Fabio Estevam
  2014-10-07 18:29 ` [PATCH 2/4] ASoC: fsl: imx-spdif: " Fabio Estevam
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Fabio Estevam @ 2014-10-07 18:29 UTC (permalink / raw)
  To: broonie; +Cc: nicoleotsuka, Fabio Estevam, alsa-devel

of_node_put() supports NULL as its argument, so the initial test is not
necessary.

Signed-off-by: Fabio Estevam <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

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-10-07 19:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-07 18:29 [PATCH 1/4] ASoC: mc13783: Delete unneeded test before of_node_put Fabio Estevam
2014-10-07 18:29 ` [PATCH 2/4] ASoC: fsl: imx-spdif: " Fabio Estevam
2014-10-07 18:42   ` Nicolin Chen
2014-10-07 19:01   ` Mark Brown
2014-10-07 18:29 ` [PATCH 3/4] ASoC: fsl: eukrea-tlv320: " Fabio Estevam
2014-10-07 19:01   ` Mark Brown
2014-10-07 18:29 ` [PATCH 4/4] ASoC: simple-card: " Fabio Estevam
2014-10-07 19:02   ` Mark Brown
2014-10-07 18:59 ` [PATCH 1/4] ASoC: mc13783: " Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.