Skip to content

Commit

Permalink
Staging: iio: accel: adis16203: fixed a brace coding style issue
Browse files Browse the repository at this point in the history
Fixed a brace coding style issue.

Signed-off-by: René Hickersberger <renehickersberger@gmx.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
  • Loading branch information
René Hickersberger?= authored and Jonathan Cameron committed Apr 14, 2017
1 parent bf23527 commit ddf9ee4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/staging/iio/accel/adis16203.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ddf9ee4

Please sign in to comment.