Commit f6672544 authored by Colin Ian King's avatar Colin Ian King Committed by Jonathan Cameron

iio: st_accel: remove redundant unsigned less than zero check

The check that variable val is less than zero is redundant since val
is an unsigned int and hence can never be less than zero. Remove it.
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent e132f62b
...@@ -992,7 +992,7 @@ static int apply_acpi_orientation(struct iio_dev *indio_dev, ...@@ -992,7 +992,7 @@ static int apply_acpi_orientation(struct iio_dev *indio_dev,
goto out; goto out;
val = elements[i].integer.value; val = elements[i].integer.value;
if (val < 0 || val > 2) if (val > 2)
goto out; goto out;
/* Avoiding full matrix multiplication, we simply reorder the /* Avoiding full matrix multiplication, we simply reorder the
......
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