iio:adc:ad799x: Save some lines in ad7997_8_update_scan_mode() exit handling

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
Peter Meerwald 2014-12-06 05:54:00 +00:00 committed by Jonathan Cameron
parent 541544712e
commit bd3bd4328a
1 changed files with 1 additions and 3 deletions

View File

@ -193,10 +193,8 @@ static int ad7997_8_update_scan_mode(struct iio_dev *indio_dev,
return i2c_smbus_write_word_swapped(st->client, AD7998_CONF_REG,
st->config | (*scan_mask << AD799X_CHANNEL_SHIFT));
default:
break;
return 0;
}
return 0;
}
static int ad799x_scan_direct(struct ad799x_state *st, unsigned ch)