summaryrefslogtreecommitdiff
path: root/drivers/iio
diff options
context:
space:
mode:
authorBijosh Thykkoottathil <bijosh.t@hotmail.com>2016-07-04 14:15:08 +0300
committerJonathan Cameron <jic23@kernel.org>2016-07-05 23:05:01 +0300
commit0ddfd857130d16b1fb1e45c5ab2321a65738d70b (patch)
tree78805a3dbe6e24612073d783260ae1787b47a719 /drivers/iio
parent1a965d405fc6f6b1e3454baad7001fed91c9c458 (diff)
downloadlinux-0ddfd857130d16b1fb1e45c5ab2321a65738d70b.tar.xz
drivers:iio:accel:mma8452: removed unwanted return statements
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>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/accel/mma8452.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/iio/accel/mma8452.c b/drivers/iio/accel/mma8452.c
index 9ba2f7f0d942..d41e1b588e68 100644
--- 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,