All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ASoC: mxs-sgtl5000: Remove unneeded 'ret' variable
@ 2013-04-24 16:23 Fabio Estevam
  2013-04-24 16:23 ` [PATCH 2/2] ASoC: mxs-sgtl5000: Remove unneeded fields from snd_soc_dai_link Fabio Estevam
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Fabio Estevam @ 2013-04-24 16:23 UTC (permalink / raw)
  To: broonie; +Cc: Fabio Estevam, alsa-devel, shawn.guo, kernel

From: Fabio Estevam <fabio.estevam@freescale.com>

Variable 'ret' is not needed here, so just remove it.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 sound/soc/mxs/mxs-sgtl5000.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/mxs/mxs-sgtl5000.c b/sound/soc/mxs/mxs-sgtl5000.c
index b1d9b5e..4f74b05 100644
--- a/sound/soc/mxs/mxs-sgtl5000.c
+++ b/sound/soc/mxs/mxs-sgtl5000.c
@@ -116,7 +116,7 @@ static int mxs_sgtl5000_probe_dt(struct platform_device *pdev)
 {
 	struct device_node *np = pdev->dev.of_node;
 	struct device_node *saif_np[2], *codec_np;
-	int i, ret = 0;
+	int i;
 
 	if (!np)
 		return 1; /* no device tree */
@@ -142,7 +142,7 @@ static int mxs_sgtl5000_probe_dt(struct platform_device *pdev)
 	of_node_put(saif_np[0]);
 	of_node_put(saif_np[1]);
 
-	return ret;
+	return 0;
 }
 
 static int mxs_sgtl5000_probe(struct platform_device *pdev)
-- 
1.7.9.5

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

end of thread, other threads:[~2013-05-06 11:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-24 16:23 [PATCH 1/2] ASoC: mxs-sgtl5000: Remove unneeded 'ret' variable Fabio Estevam
2013-04-24 16:23 ` [PATCH 2/2] ASoC: mxs-sgtl5000: Remove unneeded fields from snd_soc_dai_link Fabio Estevam
2013-04-25  5:24   ` Shawn Guo
2013-04-25  5:22 ` [PATCH 1/2] ASoC: mxs-sgtl5000: Remove unneeded 'ret' variable Shawn Guo
2013-04-25 10:59 ` Mark Brown
2013-05-06 11:43 ` 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.