aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2013-04-24 12:23:14 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-05-12 12:50:02 -0400
commit29f421c2107f28976dacc9f1fca4bbfebee5b10f (patch)
tree71e56a85f0b33fd826f1d9835f06d953092c6daa
parente5d80e82e32e4cb66d67a56352e5a594e2a35cd0 (diff)
ASoC: mxs-sgtl5000: Remove unneeded 'ret' variable
Variable 'ret' is not needed here, so just remove it. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Acked-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r--sound/soc/mxs/mxs-sgtl5000.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/mxs/mxs-sgtl5000.c b/sound/soc/mxs/mxs-sgtl5000.c
index b1d9b5ebeeeb..4f74b051f73a 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)
116{ 116{
117 struct device_node *np = pdev->dev.of_node; 117 struct device_node *np = pdev->dev.of_node;
118 struct device_node *saif_np[2], *codec_np; 118 struct device_node *saif_np[2], *codec_np;
119 int i, ret = 0; 119 int i;
120 120
121 if (!np) 121 if (!np)
122 return 1; /* no device tree */ 122 return 1; /* no device tree */
@@ -142,7 +142,7 @@ static int mxs_sgtl5000_probe_dt(struct platform_device *pdev)
142 of_node_put(saif_np[0]); 142 of_node_put(saif_np[0]);
143 of_node_put(saif_np[1]); 143 of_node_put(saif_np[1]);
144 144
145 return ret; 145 return 0;
146} 146}
147 147
148static int mxs_sgtl5000_probe(struct platform_device *pdev) 148static int mxs_sgtl5000_probe(struct platform_device *pdev)