Skip to content

Commit 0ddfd85

Browse files
bijoshjic23
authored andcommitted
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>
1 parent 1a965d4 commit 0ddfd85

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

drivers/iio/accel/mma8452.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -634,11 +634,7 @@ static int mma8452_set_freefall_mode(struct mma8452_data *data, bool state)
634634
val |= MMA8452_FF_MT_CFG_OAE;
635635
}
636636

637-
val = mma8452_change_config(data, chip->ev_cfg, val);
638-
if (val)
639-
return val;
640-
641-
return 0;
637+
return mma8452_change_config(data, chip->ev_cfg, val);
642638
}
643639

644640
static int mma8452_set_hp_filter_frequency(struct mma8452_data *data,

0 commit comments

Comments
 (0)