projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abaca80
)
IIO: ADC: stm32-dfsdm: fix static check warning
author
Arnaud Pouliquen
<arnaud.pouliquen@st.com>
Mon, 15 Jan 2018 09:00:26 +0000
(10:00 +0100)
committer
Mark Brown
<broonie@kernel.org>
Mon, 15 Jan 2018 18:50:37 +0000
(18:50 +0000)
iio_priv does not return an error pointer, so check is not valid.
Patch suppresses it.
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/iio/adc/stm32-dfsdm-adc.c
patch
|
blob
|
history
diff --git
a/drivers/iio/adc/stm32-dfsdm-adc.c
b/drivers/iio/adc/stm32-dfsdm-adc.c
index 3fe9b34ac6af866e67aa4fea875d66fca28770fe..daa026d6a94f90304d16cfc4348a963833c973e7 100644
(file)
--- a/
drivers/iio/adc/stm32-dfsdm-adc.c
+++ b/
drivers/iio/adc/stm32-dfsdm-adc.c
@@
-1099,10
+1099,6
@@
static int stm32_dfsdm_adc_probe(struct platform_device *pdev)
}
adc = iio_priv(iio);
- if (IS_ERR(adc)) {
- dev_err(dev, "%s: Failed to allocate ADC\n", __func__);
- return PTR_ERR(adc);
- }
adc->dfsdm = dev_get_drvdata(dev->parent);
iio->dev.parent = dev;