mirror of
https://github.com/torvalds/linux.git
synced 2024-12-12 14:12:51 +00:00
staging: iio: frequency: ad9834: Remove unnecessary parentheses
Remove unneeded parentheses around the arguments of ||. This reduces clutter and code behave in the same way. Change suggested by checkpatch.pl. CHECK: Unnecessary parentheses around 'st->devid == ID_AD9833' CHECK: Unnecessary parentheses around 'st->devid == ID_AD9837' Signed-off-by: Melissa Wen <melissa.srw@gmail.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
8cf614950e
commit
9044b6e25e
@ -285,7 +285,7 @@ ssize_t ad9834_show_out0_wavetype_available(struct device *dev,
|
||||
struct ad9834_state *st = iio_priv(indio_dev);
|
||||
char *str;
|
||||
|
||||
if ((st->devid == ID_AD9833) || (st->devid == ID_AD9837))
|
||||
if (st->devid == ID_AD9833 || st->devid == ID_AD9837)
|
||||
str = "sine triangle square";
|
||||
else if (st->control & AD9834_OPBITEN)
|
||||
str = "sine";
|
||||
|
Loading…
Reference in New Issue
Block a user