staging: iio: frequency: ad9834: Remove unnecessary parentheses
authorMelissa Wen <melissa.srw@gmail.com>
Tue, 2 Apr 2019 20:18:54 +0000 (17:18 -0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 14 Apr 2019 12:22:29 +0000 (13:22 +0100)
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>
drivers/staging/iio/frequency/ad9834.c

index fc7e112..6de3cd7 100644 (file)
@@ -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";