summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelissa Wen <melissa.srw@gmail.com>2019-04-02 17:18:54 -0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2019-04-14 13:22:29 +0100
commit9044b6e25e2fba8c5586f958da6ff89582d06a3d (patch)
tree7415c4ee2b1782cdb6801a97d174afeab2963060
parent8cf614950e391c97405cf9ff489f0900322ef396 (diff)
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>
-rw-r--r--drivers/staging/iio/frequency/ad9834.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/frequency/ad9834.c b/drivers/staging/iio/frequency/ad9834.c
index fc7e1126d143..6de3cd7363d7 100644
--- a/drivers/staging/iio/frequency/ad9834.c
+++ b/drivers/staging/iio/frequency/ad9834.c
@@ -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";