summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorCristina Moraru <cristina.moraru09@gmail.com>2015-10-20 22:55:47 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-24 19:32:09 -0700
commitcd857a158abcf2ad0134e9f044ba74b2bd0b468a (patch)
tree3010d21b245c2cff81ffe4b4d2eaacd24db5121a /drivers
parent05824120e4ff5f431370db106d1a034b3923e0db (diff)
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')
-rw-r--r--drivers/staging/iio/magnetometer/hmc5843_core.c2
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 4aab0228a195..394bc141a1b0 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++)