From: Fabio Estevam Date: Fri, 3 Oct 2014 01:25:23 +0000 (-0300) Subject: iio: adc: vf610: Return the error code directly X-Git-Tag: v3.19-rc1~66^2~446^2~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2e3d6675dc2f402d8b799b773324e60af3e2a325;p=thirdparty%2Fkernel%2Flinux.git 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: Fabio Estevam Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/adc/vf610_adc.c b/drivers/iio/adc/vf610_adc.c index 7ec21b5612ef3..ebb73f5d3c3a9 100644 --- a/drivers/iio/adc/vf610_adc.c +++ b/drivers/iio/adc/vf610_adc.c @@ -610,8 +610,7 @@ static int vf610_adc_probe(struct platform_device *pdev) if (IS_ERR(info->clk)) { dev_err(&pdev->dev, "failed getting clock, err = %ld\n", PTR_ERR(info->clk)); - ret = PTR_ERR(info->clk); - return ret; + return PTR_ERR(info->clk); } info->vref = devm_regulator_get(&pdev->dev, "vref");