Commit cd857a15 authored by Cristina Moraru's avatar Cristina Moraru Committed by Greg Kroah-Hartman

staging: iio: magnetometer: Remove explicit comparisons

Remove comparisons to 0 or NULL
Signed-off-by: default avatarCristina Moraru <cristina.moraru09@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 05824120
...@@ -334,7 +334,7 @@ static int hmc5843_get_scale_index(struct hmc5843_data *data, int val, int val2) ...@@ -334,7 +334,7 @@ static int hmc5843_get_scale_index(struct hmc5843_data *data, int val, int val2)
{ {
int i; int i;
if (val != 0) if (val)
return -EINVAL; return -EINVAL;
for (i = 0; i < data->variant->n_regval_to_nanoscale; i++) for (i = 0; i < data->variant->n_regval_to_nanoscale; i++)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment