iio: accel: mma9553: return 0 as indication of success
authorIrina Tirdea <irina.tirdea@intel.com>
Mon, 13 Apr 2015 15:40:55 +0000 (18:40 +0300)
committerJonathan Cameron <jic23@kernel.org>
Sun, 26 Apr 2015 18:47:41 +0000 (19:47 +0100)
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>
drivers/iio/accel/mma9553.c

index 04a4bb99b269e6e56a14ff00d7c0b1b0a35f890b..f2118b1a7010e46255a70911c22243ab02423319 100644 (file)
@@ -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) {