diff options
author | Sachin Kamat <sachin.kamat@samsung.com> | 2014-03-07 08:38:00 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-07-03 22:56:35 +0200 |
commit | 15255c6b4de66b8d282d0b62398d90ff7b24f4a5 (patch) | |
tree | 82cf01099a757ec788d167218df60cdb61bf16ce /drivers/iio | |
parent | iio: adis16400: Remove unused variable (diff) | |
download | linux-15255c6b4de66b8d282d0b62398d90ff7b24f4a5.tar.xz linux-15255c6b4de66b8d282d0b62398d90ff7b24f4a5.zip |
iio: ad5624r_spi: Remove redundant variable
By re-arranging the code, 'ret' can be removed from this
function.
Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
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/ad5624r_spi.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/iio/dac/ad5624r_spi.c b/drivers/iio/dac/ad5624r_spi.c index e8199cce2aea..61bb9d4239ea 100644 --- a/drivers/iio/dac/ad5624r_spi.c +++ b/drivers/iio/dac/ad5624r_spi.c @@ -67,7 +67,6 @@ static int ad5624r_write_raw(struct iio_dev *indio_dev, long mask) { struct ad5624r_state *st = iio_priv(indio_dev); - int ret; switch (mask) { case IIO_CHAN_INFO_RAW: @@ -79,10 +78,8 @@ static int ad5624r_write_raw(struct iio_dev *indio_dev, chan->address, val, chan->scan_type.shift); default: - ret = -EINVAL; + return -EINVAL; } - - return -EINVAL; } static const char * const ad5624r_powerdown_modes[] = { |