Commit 9044b6e2 authored by Melissa Wen's avatar Melissa Wen Committed by Jonathan Cameron

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: default avatarMelissa Wen <melissa.srw@gmail.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 8cf61495
...@@ -285,7 +285,7 @@ ssize_t ad9834_show_out0_wavetype_available(struct device *dev, ...@@ -285,7 +285,7 @@ ssize_t ad9834_show_out0_wavetype_available(struct device *dev,
struct ad9834_state *st = iio_priv(indio_dev); struct ad9834_state *st = iio_priv(indio_dev);
char *str; char *str;
if ((st->devid == ID_AD9833) || (st->devid == ID_AD9837)) if (st->devid == ID_AD9833 || st->devid == ID_AD9837)
str = "sine triangle square"; str = "sine triangle square";
else if (st->control & AD9834_OPBITEN) else if (st->control & AD9834_OPBITEN)
str = "sine"; str = "sine";
......
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