Commit 1175d0f9 authored by Arnaud Pouliquen's avatar Arnaud Pouliquen Committed by Mark Brown

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: default avatarArnaud Pouliquen <arnaud.pouliquen@st.com>
Acked-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent abaca806
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment