提交 f8b24fcb 编写于 作者: F Fabio Estevam 提交者: Mark Brown

ASoC: mxs-sgtl5000: Remove unneeded 'ret' variable

Variable 'ret' is not needed here, so just remove it.
Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com>
Acked-by: NShawn Guo <shawn.guo@linaro.org>
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 2fc059f2
...@@ -116,7 +116,7 @@ static int mxs_sgtl5000_probe_dt(struct platform_device *pdev) ...@@ -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 *np = pdev->dev.of_node;
struct device_node *saif_np[2], *codec_np; struct device_node *saif_np[2], *codec_np;
int i, ret = 0; int i;
if (!np) if (!np)
return 1; /* no device tree */ return 1; /* no device tree */
...@@ -142,7 +142,7 @@ static int mxs_sgtl5000_probe_dt(struct platform_device *pdev) ...@@ -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[0]);
of_node_put(saif_np[1]); of_node_put(saif_np[1]);
return ret; return 0;
} }
static int mxs_sgtl5000_probe(struct platform_device *pdev) static int mxs_sgtl5000_probe(struct platform_device *pdev)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册