mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-15 17:43:59 +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:
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++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user