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>
This commit is contained in:
parent
a9fbbbd7d2
commit
15255c6b4d
1 changed files with 1 additions and 4 deletions
|
@ -67,7 +67,6 @@ static int ad5624r_write_raw(struct iio_dev *indio_dev,
|
||||||
long mask)
|
long mask)
|
||||||
{
|
{
|
||||||
struct ad5624r_state *st = iio_priv(indio_dev);
|
struct ad5624r_state *st = iio_priv(indio_dev);
|
||||||
int ret;
|
|
||||||
|
|
||||||
switch (mask) {
|
switch (mask) {
|
||||||
case IIO_CHAN_INFO_RAW:
|
case IIO_CHAN_INFO_RAW:
|
||||||
|
@ -79,10 +78,8 @@ static int ad5624r_write_raw(struct iio_dev *indio_dev,
|
||||||
chan->address, val,
|
chan->address, val,
|
||||||
chan->scan_type.shift);
|
chan->scan_type.shift);
|
||||||
default:
|
default:
|
||||||
ret = -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
return -EINVAL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char * const ad5624r_powerdown_modes[] = {
|
static const char * const ad5624r_powerdown_modes[] = {
|
||||||
|
|
Loading…
Reference in a new issue