]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: iio: isl29028: remove unnecessary parenthesis
authorBrian Masney <masneyb@onstation.org>
Tue, 17 Jan 2017 09:24:58 +0000 (04:24 -0500)
committerJonathan Cameron <jic23@kernel.org>
Sun, 22 Jan 2017 13:21:37 +0000 (13:21 +0000)
isl29028_write_raw() contains unnecessary parenthesis when checking to
see if the passed in lux scale is valid. This patch removes the
unnecessary parenthesis.

Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/light/isl29028.c

index e93077b07c4fbb0d27e7c4970e99b7e6a6a204ac..bc9c01d05424b3d0f1e417981f2363912a3e5b8a 100644 (file)
@@ -327,7 +327,7 @@ static int isl29028_write_raw(struct iio_dev *indio_dev,
                        break;
                }
 
-               if ((val != 125) && (val != 2000)) {
+               if (val != 125 && val != 2000) {
                        dev_err(dev,
                                "%s(): light: Lux scale %d is not in the set {125, 2000}\n",
                                __func__, val);