diff options
author | Bijosh Thykkoottathil <bijosh.t@hotmail.com> | 2016-07-04 14:15:08 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-07-05 23:05:01 +0300 |
commit | 0ddfd857130d16b1fb1e45c5ab2321a65738d70b (patch) | |
tree | 78805a3dbe6e24612073d783260ae1787b47a719 /drivers/iio/accel | |
parent | 1a965d405fc6f6b1e3454baad7001fed91c9c458 (diff) | |
download | linux-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/accel')
-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) 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, |