projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7be178b
)
iio: adc: vf610: Return the error code directly
author
Fabio Estevam
<fabio.estevam@freescale.com>
Fri, 3 Oct 2014 01:25:23 +0000
(22:25 -0300)
committer
Jonathan Cameron
<jic23@kernel.org>
Sat, 4 Oct 2014 11:28:02 +0000
(12:28 +0100)
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>
drivers/iio/adc/vf610_adc.c
patch
|
blob
|
history
diff --git
a/drivers/iio/adc/vf610_adc.c
b/drivers/iio/adc/vf610_adc.c
index
7ec21b5
..
ebb73f5
100644
(file)
--- 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");