diff options
author | Cristina Moraru <cristina.moraru09@gmail.com> | 2015-10-20 22:55:41 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-24 19:32:09 -0700 |
commit | 062f782b37059f7156e59f46c71225ba4a5efa06 (patch) | |
tree | 19740a30ca3e33def14a086d7b727df1f1836bb7 /drivers/staging/iio/meter/ade7754.c | |
parent | d59b7b68344df4a2a9eb31e0d667692bfa43a690 (diff) |
staging: iio: meter: 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/meter/ade7754.c')
-rw-r--r-- | drivers/staging/iio/meter/ade7754.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/meter/ade7754.c b/drivers/staging/iio/meter/ade7754.c index 8552c76cbbe7..664c6e5f76b1 100644 --- a/drivers/staging/iio/meter/ade7754.c +++ b/drivers/staging/iio/meter/ade7754.c @@ -438,7 +438,7 @@ static ssize_t ade7754_write_frequency(struct device *dev, ret = kstrtou16(buf, 10, &val); if (ret) return ret; - if (val == 0) + if (!val) return -EINVAL; mutex_lock(&indio_dev->mlock); |