diff options
author | Sachin Kamat <sachin.kamat@samsung.com> | 2014-03-07 02:38:00 -0500 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-07-03 16:59:56 -0400 |
commit | 10215d8689b605ce30ef9327a98337ce056b1c3d (patch) | |
tree | bd46621ae9c7f8f85d357cc3a2b2996d71a8694f /drivers/iio | |
parent | 0d3a9b2daddc1ebb6db66d5f913bcd93f449f8e5 (diff) |
iio: ad5686: Remove redundant variable
‘regdone’ is not used in the function. Remove it.
Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
Cc: Michael Hennerich <hennerich@blackfin.uclinux.org>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/dac/ad5686.c | 3 |
1 files changed, 1 insertions, 2 deletions
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) | |||
313 | { | 313 | { |
314 | struct ad5686_state *st; | 314 | struct ad5686_state *st; |
315 | struct iio_dev *indio_dev; | 315 | struct iio_dev *indio_dev; |
316 | int ret, regdone = 0, voltage_uv = 0; | 316 | int ret, voltage_uv = 0; |
317 | 317 | ||
318 | indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st)); | 318 | indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st)); |
319 | if (indio_dev == NULL) | 319 | if (indio_dev == NULL) |
@@ -355,7 +355,6 @@ static int ad5686_probe(struct spi_device *spi) | |||
355 | indio_dev->channels = st->chip_info->channel; | 355 | indio_dev->channels = st->chip_info->channel; |
356 | indio_dev->num_channels = AD5686_DAC_CHANNELS; | 356 | indio_dev->num_channels = AD5686_DAC_CHANNELS; |
357 | 357 | ||
358 | regdone = 1; | ||
359 | ret = ad5686_spi_write(st, AD5686_CMD_INTERNAL_REFER_SETUP, 0, | 358 | ret = ad5686_spi_write(st, AD5686_CMD_INTERNAL_REFER_SETUP, 0, |
360 | !!voltage_uv, 0); | 359 | !!voltage_uv, 0); |
361 | if (ret) | 360 | if (ret) |