From: Irina Tirdea Date: Mon, 13 Apr 2015 15:40:55 +0000 (+0300) Subject: iio: accel: mma9553: return 0 as indication of success X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=04aff96ad49d297fa530bb01aa09f1f39e65189a;p=openwrt%2Fstaging%2Fblogic.git 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 Suggested-by: Hartmut Knaack Signed-off-by: Jonathan Cameron --- 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) {