Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Alexander Vorwerk <alec@vc-celle.de>
Link: https://lore.kernel.org/r/20210820224914.1260-1-alec@vc-celle.de
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Alexander Vorwerk and committed by
Jonathan Cameron
05009850 25d4abbf

+1 -3
+1 -3
drivers/staging/iio/cdc/ad7746.c
··· 241 241 if (ret < 0) 242 242 return ret; 243 243 244 - if (chip->capdac_set != chan->channel) { 245 - 244 + if (chip->capdac_set != chan->channel) 246 245 chip->capdac_set = chan->channel; 247 - } 248 246 break; 249 247 case IIO_VOLTAGE: 250 248 case IIO_TEMP: