Skip to content

Commit

Permalink
IIO: ADC: stm32-dfsdm: fix static check warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arnaud Pouliquen authored and Mark Brown committed Jan 15, 2018
1 parent abaca80 commit 1175d0f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/iio/adc/stm32-dfsdm-adc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1175d0f

Please sign in to comment.