diff options
author | Bijosh Thykkoottathil <bijosh.t@hotmail.com> | 2016-07-04 07:15:08 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-07-05 16:05:01 -0400 |
commit | 0ddfd857130d16b1fb1e45c5ab2321a65738d70b (patch) | |
tree | 78805a3dbe6e24612073d783260ae1787b47a719 | |
parent | 1a965d405fc6f6b1e3454baad7001fed91c9c458 (diff) |
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>
-rw-r--r-- | drivers/iio/accel/mma8452.c | 6 |
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) | |||
634 | val |= MMA8452_FF_MT_CFG_OAE; | 634 | val |= MMA8452_FF_MT_CFG_OAE; |
635 | } | 635 | } |
636 | 636 | ||
637 | val = mma8452_change_config(data, chip->ev_cfg, val); | 637 | return mma8452_change_config(data, chip->ev_cfg, val); |
638 | if (val) | ||
639 | return val; | ||
640 | |||
641 | return 0; | ||
642 | } | 638 | } |
643 | 639 | ||
644 | static int mma8452_set_hp_filter_frequency(struct mma8452_data *data, | 640 | static int mma8452_set_hp_filter_frequency(struct mma8452_data *data, |