From: Bijosh Thykkoottathil Date: Mon, 4 Jul 2016 11:15:08 +0000 (+0000) Subject: drivers:iio:accel:mma8452: removed unwanted return statements X-Git-Tag: v4.8-rc1~193^2^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0ddfd857130d16b1fb1e45c5ab2321a65738d70b;p=karo-tx-linux.git drivers:iio:accel:mma8452: removed unwanted return statements Removed unwanted return statements from the function mma8452_set_freefall_mode. Signed-off-by: Bijosh Thykkoottathil Acked-by: Martin Kepplinger Signed-off-by: Jonathan Cameron --- 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,