Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1560378 > unrolled thread

[PATCH v2 11/15] staging: iio: isl29028: remove unnecessary parenthesis

Started byBrian Masney <masneyb@onstation.org>
First post2017-01-17 10:30 +0100
Last post2017-01-21 15:50 +0100
Articles 2 — 2 participants

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.


Contents

  [PATCH v2 11/15] staging: iio: isl29028: remove unnecessary parenthesis Brian Masney <masneyb@onstation.org> - 2017-01-17 10:30 +0100
    Re: [PATCH v2 11/15] staging: iio: isl29028: remove unnecessary  parenthesis Jonathan Cameron <jic23@kernel.org> - 2017-01-21 15:50 +0100

#1560378 — [PATCH v2 11/15] staging: iio: isl29028: remove unnecessary parenthesis

FromBrian Masney <masneyb@onstation.org>
Date2017-01-17 10:30 +0100
Subject[PATCH v2 11/15] staging: iio: isl29028: remove unnecessary parenthesis
Message-ID<t0yfw-5dT-27@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 e93077b..bc9c01d 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);
-- 
2.9.3

[toc] | [next] | [standalone]


#1564129 — Re: [PATCH v2 11/15] staging: iio: isl29028: remove unnecessary parenthesis

FromJonathan Cameron <jic23@kernel.org>
Date2017-01-21 15:50 +0100
SubjectRe: [PATCH v2 11/15] staging: iio: isl29028: remove unnecessary parenthesis
Message-ID<t259n-59n-1@gated-at.bofh.it>
In reply to#1560378
On 17/01/17 09:24, Brian Masney wrote:
> 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>
hmm. Not sure I really care about this either way.

Ah well, applied.

Jonathan
> ---
>  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 e93077b..bc9c01d 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);
> 

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web