staging:iio:ad2s90: Remove always overwritten assignment
authorMatheus Tavares <matheus.bernardino@usp.br>
Sat, 3 Nov 2018 22:49:45 +0000 (19:49 -0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 11 Nov 2018 15:29:48 +0000 (15:29 +0000)
This patch removes an initial assignment to the variable ret at probe,
that was always overwritten.

Signed-off-by: Matheus Tavares <matheus.bernardino@usp.br>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/resolver/ad2s90.c

index 4908c8a95fadd9dd87e9ee1cbe4b94473ed71bbe..54ad85bd9dc62f6a76240f9790429da2db9f5372 100644 (file)
@@ -62,7 +62,7 @@ static int ad2s90_probe(struct spi_device *spi)
 {
        struct iio_dev *indio_dev;
        struct ad2s90_state *st;
-       int ret = 0;
+       int ret;
 
        indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st));
        if (!indio_dev)