Commit 05009850 authored by Alexander Vorwerk's avatar Alexander Vorwerk Committed by Jonathan Cameron

staging: iio: cdc: remove braces from single line if blocks

Remove braces from single line if blocks to clear checkpatch warnings.
WARNING: braces {} are not necessary for single statement blocks
Signed-off-by: default avatarAlexander Vorwerk <alec@vc-celle.de>
Link: https://lore.kernel.org/r/20210820224914.1260-1-alec@vc-celle.deSigned-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 25d4abbf
...@@ -241,10 +241,8 @@ static int ad7746_select_channel(struct iio_dev *indio_dev, ...@@ -241,10 +241,8 @@ static int ad7746_select_channel(struct iio_dev *indio_dev,
if (ret < 0) if (ret < 0)
return ret; return ret;
if (chip->capdac_set != chan->channel) { if (chip->capdac_set != chan->channel)
chip->capdac_set = chan->channel; chip->capdac_set = chan->channel;
}
break; break;
case IIO_VOLTAGE: case IIO_VOLTAGE:
case IIO_TEMP: case IIO_TEMP:
......
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