summaryrefslogtreecommitdiffstats
path: root/drivers/staging/iio/frequency
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@samsung.com>2014-03-07 12:56:00 +0000
committerJonathan Cameron <jic23@kernel.org>2014-07-07 13:32:07 +0100
commit260974704ea4c01fb21166182e8b0cf266cbd77a (patch)
tree6648467625ed29e9496f8011f084d417946b61ec /drivers/staging/iio/frequency
parentfb123a6b6b893e8461c17a6d068fd6e1671cf0de (diff)
downloadlinux-260974704ea4c01fb21166182e8b0cf266cbd77a.tar.gz
linux-260974704ea4c01fb21166182e8b0cf266cbd77a.tar.bz2
linux-260974704ea4c01fb21166182e8b0cf266cbd77a.zip
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>
Diffstat (limited to 'drivers/staging/iio/frequency')
-rw-r--r--drivers/staging/iio/frequency/ad9832.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/frequency/ad9832.c b/drivers/staging/iio/frequency/ad9832.c
index b7c8351ce2ff..cf68159a5848 100644
--- a/drivers/staging/iio/frequency/ad9832.c
+++ b/drivers/staging/iio/frequency/ad9832.c
@@ -120,7 +120,7 @@ static ssize_t ad9832_write(struct device *dev, struct device_attribute *attr,
ret = spi_sync(st->spi, &st->msg);
break;
case AD9832_PHASE_SYM:
- if (val < 0 || val > 3) {
+ if (val > 3) {
ret = -EINVAL;
break;
}