提交 0ddfd857 编写于 作者: B Bijosh Thykkoottathil 提交者: Jonathan Cameron

drivers:iio:accel:mma8452: removed unwanted return statements

Removed unwanted return statements from the function
mma8452_set_freefall_mode.
Signed-off-by: NBijosh Thykkoottathil <bijosh.t@hotmail.com>
Acked-by: NMartin Kepplinger <martink@posteo.de>
Signed-off-by: NJonathan Cameron <jic23@kernel.org>
上级 1a965d40
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册