projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d05293
)
iio: accel: mma9553: return 0 as indication of success
author
Irina Tirdea
<irina.tirdea@intel.com>
Mon, 13 Apr 2015 15:40:55 +0000
(18:40 +0300)
committer
Jonathan 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
patch
|
blob
|
history
diff --git
a/drivers/iio/accel/mma9553.c
b/drivers/iio/accel/mma9553.c
index 04a4bb99b269e6e56a14ff00d7c0b1b0a35f890b..f2118b1a7010e46255a70911c22243ab02423319 100644
(file)
--- 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) {