提交 26097470 编写于 作者: S Sachin Kamat 提交者: Jonathan Cameron

staging: iio: ad9832: Remove redundant check

'val' is unsigned and cannot be negative.
Signed-off-by: NSachin Kamat <sachin.kamat@samsung.com>
Cc: Michael Hennerich <hennerich@blackfin.uclinux.org>
Signed-off-by: NJonathan Cameron <jic23@kernel.org>
上级 fb123a6b
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册