提交 421afe58 编写于 作者: L Lars-Peter Clausen 提交者: Jonathan Cameron

staging:iio:ad7793: Add missing break in switch statement

Without the break statement we fall right through to the default case and return
an error value.
Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: NJonathan Cameron <jic23@kernel.org>
上级 1c795ebd
......@@ -676,7 +676,7 @@ static int ad7793_write_raw(struct iio_dev *indio_dev,
}
ret = 0;
}
break;
default:
ret = -EINVAL;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册