mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
05824120e4
commit
cd857a158a
@@ -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++)
|
||||
|
||||
Reference in New Issue
Block a user