summaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorFabio Estevam2014-10-03 03:25:23 +0200
committerJonathan Cameron2014-10-04 13:28:02 +0200
commit2e3d6675dc2f402d8b799b773324e60af3e2a325 (patch)
tree5207fe4d217a7b900df414d6c5456d103a71177f /drivers/iio
parentiio:common: Set the device pointer into ST common sensors library (diff)
downloadkernel-qcow2-linux-2e3d6675dc2f402d8b799b773324e60af3e2a325.tar.gz
kernel-qcow2-linux-2e3d6675dc2f402d8b799b773324e60af3e2a325.tar.xz
kernel-qcow2-linux-2e3d6675dc2f402d8b799b773324e60af3e2a325.zip
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 <fabio.estevam@freescale.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/adc/vf610_adc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/iio/adc/vf610_adc.c b/drivers/iio/adc/vf610_adc.c
index 7ec21b5612ef..ebb73f5d3c3a 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");