projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a965d4
)
drivers:iio:accel:mma8452: removed unwanted return statements
author
Bijosh Thykkoottathil
<bijosh.t@hotmail.com>
Mon, 4 Jul 2016 11:15:08 +0000
(11:15 +0000)
committer
Jonathan Cameron
<jic23@kernel.org>
Tue, 5 Jul 2016 20:05:01 +0000
(21:05 +0100)
Removed unwanted return statements from the function
mma8452_set_freefall_mode.
Signed-off-by: Bijosh Thykkoottathil <bijosh.t@hotmail.com>
Acked-by: Martin Kepplinger <martink@posteo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/mma8452.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iio/accel/mma8452.c
b/drivers/iio/accel/mma8452.c
index 9ba2f7f0d9428666c07d5b891e816d87f4db4425..d41e1b588e68f4b582561c395c24b77a85bef5bb 100644
(file)
--- a/
drivers/iio/accel/mma8452.c
+++ b/
drivers/iio/accel/mma8452.c
@@
-634,11
+634,7
@@
static int mma8452_set_freefall_mode(struct mma8452_data *data, bool state)
val |= MMA8452_FF_MT_CFG_OAE;
}
- val = mma8452_change_config(data, chip->ev_cfg, val);
- if (val)
- return val;
-
- return 0;
+ return mma8452_change_config(data, chip->ev_cfg, val);
}
static int mma8452_set_hp_filter_frequency(struct mma8452_data *data,