Commit 26097470 authored by Sachin Kamat's avatar Sachin Kamat Committed by Jonathan Cameron

staging: iio: ad9832: Remove redundant check

'val' is unsigned and cannot be negative.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@samsung.com>
Cc: Michael Hennerich <hennerich@blackfin.uclinux.org>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent fb123a6b
...@@ -120,7 +120,7 @@ static ssize_t ad9832_write(struct device *dev, struct device_attribute *attr, ...@@ -120,7 +120,7 @@ static ssize_t ad9832_write(struct device *dev, struct device_attribute *attr,
ret = spi_sync(st->spi, &st->msg); ret = spi_sync(st->spi, &st->msg);
break; break;
case AD9832_PHASE_SYM: case AD9832_PHASE_SYM:
if (val < 0 || val > 3) { if (val > 3) {
ret = -EINVAL; ret = -EINVAL;
break; break;
} }
......
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