forked from Minki/linux
iio: ad5504: 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>
This commit is contained in:
parent
15255c6b4d
commit
0d3a9b2dad
@ -125,7 +125,6 @@ static int ad5504_write_raw(struct iio_dev *indio_dev,
|
||||
long mask)
|
||||
{
|
||||
struct ad5504_state *st = iio_priv(indio_dev);
|
||||
int ret;
|
||||
|
||||
switch (mask) {
|
||||
case IIO_CHAN_INFO_RAW:
|
||||
@ -134,10 +133,8 @@ static int ad5504_write_raw(struct iio_dev *indio_dev,
|
||||
|
||||
return ad5504_spi_write(st, chan->address, val);
|
||||
default:
|
||||
ret = -EINVAL;
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static const char * const ad5504_powerdown_modes[] = {
|
||||
|
Loading…
Reference in New Issue
Block a user