Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1535558 > unrolled thread
| Started by | Brian Masney <masneyb@onstation.org> |
|---|---|
| First post | 2016-12-04 03:30 +0100 |
| Last post | 2016-12-04 03:30 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 18/19] staging: iio: isl29028: remove unnecessary parenthesis Brian Masney <masneyb@onstation.org> - 2016-12-04 03:30 +0100
| From | Brian Masney <masneyb@onstation.org> |
|---|---|
| Date | 2016-12-04 03:30 +0100 |
| Subject | [PATCH 18/19] staging: iio: isl29028: remove unnecessary parenthesis |
| Message-ID | <sKuIV-194-11@gated-at.bofh.it> |
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>
---
drivers/staging/iio/light/isl29028.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/iio/light/isl29028.c b/drivers/staging/iio/light/isl29028.c
index bda5183..ae6896f 100644
--- a/drivers/staging/iio/light/isl29028.c
+++ b/drivers/staging/iio/light/isl29028.c
@@ -330,7 +330,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);
--
2.7.4
Back to top | Article view | linux.kernel
csiph-web