Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29f421c2 authored by Fabio Estevam's avatar Fabio Estevam Committed by Mark Brown
Browse files

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



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

Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Acked-by: default avatarShawn Guo <shawn.guo@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent e5d80e82
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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)