Skip to content

Commit

Permalink
staging:iio:accel:adis16029 fixed checkpatch issue - drop braces arou…
Browse files Browse the repository at this point in the history
…nd single if statement

Fixed the followinf checkpatch warning:
WARNING: braces {} are not necessary for single statement blocks
torvalds#258: FILE: drivers/staging/iio/accel/adis16209.c:258:
+		if (ret) {
+			return ret;
+		}

Signed-off-by: Andrea della Porta <[email protected]>
  • Loading branch information
sfaragnaus authored and 0day robot committed Mar 31, 2017
1 parent 6fd3fc1 commit 653ed10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/iio/accel/adis16209.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,9 @@ static int adis16209_read_raw(struct iio_dev *indio_dev,
}
addr = adis16209_addresses[chan->scan_index][0];
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 653ed10

Please sign in to comment.