From: Brian Masney Date: Tue, 17 Jan 2017 09:24:58 +0000 (-0500) Subject: staging: iio: isl29028: remove unnecessary parenthesis X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=71a0a643468e96caad4f0aa48d1041f319f3ba83;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: iio: isl29028: remove unnecessary parenthesis 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 Signed-off-by: Jonathan Cameron --- diff --git a/drivers/staging/iio/light/isl29028.c b/drivers/staging/iio/light/isl29028.c index e93077b07c4f..bc9c01d05424 100644 --- a/drivers/staging/iio/light/isl29028.c +++ b/drivers/staging/iio/light/isl29028.c @@ -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);