Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: iio: ad9832: Remove redundant check

'val' is unsigned and cannot be negative.

Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
Cc: Michael Hennerich <hennerich@blackfin.uclinux.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>

authored by

Sachin Kamat and committed by
Jonathan Cameron
26097470 fb123a6b

+1 -1
+1 -1
drivers/staging/iio/frequency/ad9832.c
··· 120 120 ret = spi_sync(st->spi, &st->msg); 121 121 break; 122 122 case AD9832_PHASE_SYM: 123 - if (val < 0 || val > 3) { 123 + if (val > 3) { 124 124 ret = -EINVAL; 125 125 break; 126 126 }