Commit addb2ebe authored by Matheus Tavares's avatar Matheus Tavares Committed by Jonathan Cameron

staging:iio:ad2s90: Remove always overwritten assignment

This patch removes an initial assignment to the variable ret at probe,
that was always overwritten.
Signed-off-by: default avatarMatheus Tavares <matheus.bernardino@usp.br>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent b3a3eafe
...@@ -62,7 +62,7 @@ static int ad2s90_probe(struct spi_device *spi) ...@@ -62,7 +62,7 @@ static int ad2s90_probe(struct spi_device *spi)
{ {
struct iio_dev *indio_dev; struct iio_dev *indio_dev;
struct ad2s90_state *st; struct ad2s90_state *st;
int ret = 0; int ret;
indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st)); indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st));
if (!indio_dev) if (!indio_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