summaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorArnaud Pouliquen <arnaud.pouliquen@st.com>2018-01-15 10:00:26 +0100
committerMark Brown <broonie@kernel.org>2018-01-15 18:50:37 +0000
commit1175d0f9f4031ce02845f6f843f58a9caaee7817 (patch)
treee3e6d0e4c5fbc37bd0c3a626a41739886fa116dd /drivers/iio
parentabaca806fd13afd069e04e883de8ec75924b0598 (diff)
downloadop-kernel-dev-1175d0f9f4031ce02845f6f843f58a9caaee7817.zip
op-kernel-dev-1175d0f9f4031ce02845f6f843f58a9caaee7817.tar.gz
IIO: ADC: stm32-dfsdm: fix static check warning
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>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/adc/stm32-dfsdm-adc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/iio/adc/stm32-dfsdm-adc.c b/drivers/iio/adc/stm32-dfsdm-adc.c
index 3fe9b34..daa026d 100644
--- 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;
OpenPOWER on IntegriCloud