diff options
author | Cristina Moraru <cristina.moraru09@gmail.com> | 2015-10-20 19:55:44 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-25 02:32:09 (GMT) |
commit | 97deb1bc1183f8d91f0ebde1403980e5f9429f6e (patch) | |
tree | cbf45832b315071fbd1f57fdf875dae87b256d51 /drivers/staging/iio | |
parent | e6e65f97db4ebd6a9aec26eccca2992eb638afd3 (diff) | |
download | linux-97deb1bc1183f8d91f0ebde1403980e5f9429f6e.tar.xz |
staging: iio: frequency: Remove explicit comparisons
Remove comparisons to 0 or NULL
Signed-off-by: Cristina Moraru <cristina.moraru09@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/iio')
-rw-r--r-- | drivers/staging/iio/frequency/ad9834.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/frequency/ad9834.c b/drivers/staging/iio/frequency/ad9834.c index d02bb44..fcffe2c 100644 --- a/drivers/staging/iio/frequency/ad9834.c +++ b/drivers/staging/iio/frequency/ad9834.c @@ -111,7 +111,7 @@ static ssize_t ad9834_write(struct device *dev, break; case AD9834_FSEL: case AD9834_PSEL: - if (val == 0) { + if (!val) { st->control &= ~(this_attr->address | AD9834_PIN_SW); } else if (val == 1) { st->control |= this_attr->address; |