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>
This commit is contained in:
parent
1d052931c6
commit
04aff96ad4
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user