mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 04:42:04 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue