Commit 806535b6 authored by Ioana Ciornei's avatar Ioana Ciornei Committed by Greg Kroah-Hartman

staging: iio: accel: add bracket on all branches of the if/else

This patch adds brackets on all of the conditional branches in
order to follow the linux coding style.
Signed-off-by: default avatarIoana Ciornei <ciorneiioana@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 48948abe
...@@ -849,9 +849,9 @@ static int sca3000_read_event_config(struct iio_dev *indio_dev, ...@@ -849,9 +849,9 @@ static int sca3000_read_event_config(struct iio_dev *indio_dev,
if (ret) if (ret)
goto error_ret; goto error_ret;
if ((st->rx[0] & protect_mask) != SCA3000_MEAS_MODE_MOT_DET) if ((st->rx[0] & protect_mask) != SCA3000_MEAS_MODE_MOT_DET) {
ret = 0; ret = 0;
else { } else {
ret = sca3000_read_ctrl_reg(st, SCA3000_REG_CTRL_SEL_MD_CTRL); ret = sca3000_read_ctrl_reg(st, SCA3000_REG_CTRL_SEL_MD_CTRL);
if (ret < 0) if (ret < 0)
goto error_ret; goto error_ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment