diff options
author | Irina Tirdea <irina.tirdea@intel.com> | 2015-04-13 17:40:55 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-04-26 20:47:41 +0200 |
commit | 04aff96ad49d297fa530bb01aa09f1f39e65189a (patch) | |
tree | a8b68c3f185d05242c44cc68eff53018ffa54a15 /drivers/iio | |
parent | iio: accel: mma9553: check for error in reading initial activity and stepcnt (diff) | |
download | linux-04aff96ad49d297fa530bb01aa09f1f39e65189a.tar.xz linux-04aff96ad49d297fa530bb01aa09f1f39e65189a.zip |
iio: accel: mma9553: return 0 as indication of success
Use return 0 instead of return ret to mark
clearly the success return path.
Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Suggested-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/accel/mma9553.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/accel/mma9553.c b/drivers/iio/accel/mma9553.c index 04a4bb99b269..f2118b1a7010 100644 --- a/drivers/iio/accel/mma9553.c +++ b/drivers/iio/accel/mma9553.c @@ -794,7 +794,7 @@ static int mma9553_write_event_config(struct iio_dev *indio_dev, mutex_unlock(&data->mutex); - return ret; + return 0; err_conf_gpio: if (state) { |