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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -992,7 +992,7 @@ static int apply_acpi_orientation(struct iio_dev *indio_dev,
			goto out;

		val = elements[i].integer.value;
		if (val < 0 || val > 2)
		if (val > 2)
			goto out;

		/* Avoiding full matrix multiplication, we simply reorder the