From: Sachin Kamat Date: Fri, 7 Mar 2014 07:38:00 +0000 (+0000) Subject: iio: ad5686: Remove redundant variable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=10215d8689b605ce30ef9327a98337ce056b1c3d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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 17aca4d9bd06..f57562aa396f 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)