提交 90b698dd 编写于 作者: A Alexey Klimov 提交者: Mauro Carvalho Chehab

V4L/DVB (9151): dsbr100: Add returns and fix codingstyle for vidioc_s_ctrl

Added return -EBUSY and fixed codingstyle issue
Signed-off-by: NAlexey Klimov <klimov.linux@gmail.com>
Signed-off-by: NDouglas Schilling Landgraf <dougsland@linuxtv.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 adeeac3b
......@@ -360,11 +360,15 @@ static int vidioc_s_ctrl(struct file *file, void *priv,
switch (ctrl->id) {
case V4L2_CID_AUDIO_MUTE:
if (ctrl->value) {
if (dsbr100_stop(radio)==-1)
if (dsbr100_stop(radio) == -1) {
warn("Radio did not respond properly");
return -EBUSY;
}
} else {
if (dsbr100_start(radio)==-1)
if (dsbr100_start(radio) == -1) {
warn("Radio did not respond properly");
return -EBUSY;
}
}
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册