From: Sachin Kamat Date: Fri, 7 Mar 2014 07:38:00 +0000 (+0000) Subject: iio: ad5686: Remove redundant variable X-Git-Tag: v3.17-rc1~123^2~779^2~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=10215d8689b605ce30ef9327a98337ce056b1c3d;p=thirdparty%2Fkernel%2Flinux.git iio: ad5686: Remove redundant variable ‘regdone’ is not used in the function. Remove it. Signed-off-by: Sachin Kamat Cc: Michael Hennerich Acked-by: Lars-Peter Clausen Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/dac/ad5686.c b/drivers/iio/dac/ad5686.c index 17aca4d9bd06e..f57562aa396f4 100644 --- a/drivers/iio/dac/ad5686.c +++ b/drivers/iio/dac/ad5686.c @@ -313,7 +313,7 @@ static int ad5686_probe(struct spi_device *spi) { struct ad5686_state *st; struct iio_dev *indio_dev; - int ret, regdone = 0, voltage_uv = 0; + int ret, voltage_uv = 0; indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st)); if (indio_dev == NULL) @@ -355,7 +355,6 @@ static int ad5686_probe(struct spi_device *spi) indio_dev->channels = st->chip_info->channel; indio_dev->num_channels = AD5686_DAC_CHANNELS; - regdone = 1; ret = ad5686_spi_write(st, AD5686_CMD_INTERNAL_REFER_SETUP, 0, !!voltage_uv, 0); if (ret)