diff options
author | Cristina Moraru <cristina.moraru09@gmail.com> | 2015-10-20 19:55:47 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-25 02:32:09 (GMT) |
commit | cd857a158abcf2ad0134e9f044ba74b2bd0b468a (patch) | |
tree | 3010d21b245c2cff81ffe4b4d2eaacd24db5121a /drivers/staging/iio | |
parent | 05824120e4ff5f431370db106d1a034b3923e0db (diff) | |
download | linux-cd857a158abcf2ad0134e9f044ba74b2bd0b468a.tar.xz |
staging: iio: magnetometer: 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/magnetometer/hmc5843_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/magnetometer/hmc5843_core.c b/drivers/staging/iio/magnetometer/hmc5843_core.c index 4aab022..394bc14 100644 --- a/drivers/staging/iio/magnetometer/hmc5843_core.c +++ b/drivers/staging/iio/magnetometer/hmc5843_core.c @@ -334,7 +334,7 @@ static int hmc5843_get_scale_index(struct hmc5843_data *data, int val, int val2) { int i; - if (val != 0) + if (val) return -EINVAL; for (i = 0; i < data->variant->n_regval_to_nanoscale; i++) |