mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
drivers:iio:accel:mma8452: removed unwanted return statements
Removed unwanted return statements from the function mma8452_set_freefall_mode. Signed-off-by: Bijosh Thykkoottathil <[email protected]> Acked-by: Martin Kepplinger <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
This commit is contained in:
parent
1a965d405f
commit
0ddfd85713
1 changed files with 1 additions and 5 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue