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

iio: Avoid multiple line dereference for mask

Prefer lines > 80 characters over splitting dereferences across multiple
lines. Reported by checkpatch.pl.

Signed-off-by: Joe Simmons-Talbott <joetalbott@gmail.com>
Link: https://lore.kernel.org/r/20220819182012.219523-1-joetalbott@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Joe Simmons-Talbott and committed by
Jonathan Cameron
682ca76b 955c2aa9

+2 -4
+2 -4
drivers/iio/industrialio-core.c
··· 1303 1303 1304 1304 ret = iio_device_add_info_mask_type_avail(indio_dev, chan, 1305 1305 IIO_SEPARATE, 1306 - &chan-> 1307 - info_mask_separate_available); 1306 + &chan->info_mask_separate_available); 1308 1307 if (ret < 0) 1309 1308 return ret; 1310 1309 attrcount += ret; ··· 1317 1318 1318 1319 ret = iio_device_add_info_mask_type_avail(indio_dev, chan, 1319 1320 IIO_SHARED_BY_TYPE, 1320 - &chan-> 1321 - info_mask_shared_by_type_available); 1321 + &chan->info_mask_shared_by_type_available); 1322 1322 if (ret < 0) 1323 1323 return ret; 1324 1324 attrcount += ret;