]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: iio: accel: add bracket on all branches of the if/else
authorIoana Ciornei <ciorneiioana@gmail.com>
Wed, 28 Oct 2015 23:01:55 +0000 (01:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Oct 2015 23:53:42 +0000 (08:53 +0900)
This patch adds brackets on all of the conditional branches in
order to follow the linux coding style.

Signed-off-by: Ioana Ciornei <ciorneiioana@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/accel/sca3000_core.c

index 455d896146c6e89fcaa986af61d4c4359b088482..03cb22508a5d157ebfa0e404ca319458db98a818 100644 (file)
@@ -849,9 +849,9 @@ static int sca3000_read_event_config(struct iio_dev *indio_dev,
        if (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;
-       else {
+       else {
                ret = sca3000_read_ctrl_reg(st, SCA3000_REG_CTRL_SEL_MD_CTRL);
                if (ret < 0)
                        goto error_ret;