From: David Veenstra Date: Fri, 18 May 2018 18:21:23 +0000 (+0200) Subject: staging: iio: ad2s1200: Remove unneeded initializations X-Git-Tag: v5.15~8661^2~119^2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c1b6a7d72d9be356e366df7d252bdbda602339b4;p=platform%2Fkernel%2Flinux-starfive.git staging: iio: ad2s1200: Remove unneeded initializations Remove 2 initializations which are unneeded, because the initialized values are never used. Signed-off-by: David Veenstra Signed-off-by: Jonathan Cameron --- diff --git a/drivers/staging/iio/resolver/ad2s1200.c b/drivers/staging/iio/resolver/ad2s1200.c index df3b342..9bdcf0c 100644 --- a/drivers/staging/iio/resolver/ad2s1200.c +++ b/drivers/staging/iio/resolver/ad2s1200.c @@ -47,7 +47,7 @@ static int ad2s1200_read_raw(struct iio_dev *indio_dev, long m) { struct ad2s1200_state *st = iio_priv(indio_dev); - int ret = 0; + int ret; mutex_lock(&st->lock); gpio_set_value(st->sample, 0); @@ -105,7 +105,7 @@ static int ad2s1200_probe(struct spi_device *spi) unsigned short *pins = spi->dev.platform_data; struct ad2s1200_state *st; struct iio_dev *indio_dev; - int pn, ret = 0; + int pn, ret; for (pn = 0; pn < AD2S1200_PN; pn++) { ret = devm_gpio_request_one(&spi->dev, pins[pn], GPIOF_DIR_OUT,