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

Commit 2e3d6675 authored by Fabio Estevam's avatar Fabio Estevam Committed by Jonathan Cameron
Browse files

iio: adc: vf610: Return the error code directly



There is no need to pass the error clock code to the variable 'ret'.

Just return the error directly.

Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 7be178bb
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -610,8 +610,7 @@ static int vf610_adc_probe(struct platform_device *pdev)
	if (IS_ERR(info->clk)) {
	if (IS_ERR(info->clk)) {
		dev_err(&pdev->dev, "failed getting clock, err = %ld\n",
		dev_err(&pdev->dev, "failed getting clock, err = %ld\n",
						PTR_ERR(info->clk));
						PTR_ERR(info->clk));
		ret = PTR_ERR(info->clk);
		return PTR_ERR(info->clk);
		return ret;
	}
	}


	info->vref = devm_regulator_get(&pdev->dev, "vref");
	info->vref = devm_regulator_get(&pdev->dev, "vref");