summaryrefslogtreecommitdiff
path: root/drivers/staging/iio
diff options
context:
space:
mode:
authorRené Hickersberger?= <renehickersberger@gmx.net>2017-04-13 15:51:37 +0200
committerJonathan Cameron <jic23@kernel.org>2017-04-14 16:13:34 +0100
commitddf9ee4084b68def495e63bb7e05d6b767e414d1 (patch)
tree8d72965ed034be3fcbc3dad2e712b5a1e3ca5551 /drivers/staging/iio
parentbf23527798cfc0274fb1444c34289da8c4e866a0 (diff)
Staging: iio: accel: adis16203: fixed a brace coding style issue
Fixed a brace coding style issue. Signed-off-by: René Hickersberger <renehickersberger@gmx.net> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/staging/iio')
-rw-r--r--drivers/staging/iio/accel/adis16203.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/iio/accel/adis16203.c b/drivers/staging/iio/accel/adis16203.c
index faa2869b5431..4e3fa7592d3f 100644
--- a/drivers/staging/iio/accel/adis16203.c
+++ b/drivers/staging/iio/accel/adis16203.c
@@ -205,9 +205,8 @@ static int adis16203_read_raw(struct iio_dev *indio_dev,
bits = 14;
addr = adis16203_addresses[chan->scan_index];
ret = adis_read_reg_16(st, addr, &val16);
- if (ret) {
+ if (ret)
return ret;
- }
val16 &= (1 << bits) - 1;
val16 = (s16)(val16 << (16 - bits)) >> (16 - bits);
*val = val16;