提交 78e51566 编写于 作者: M Mauro Carvalho Chehab

[media] em28xx: Fix return value for s_ctrl

On some cases, driver returns 1. This should be OK, but qv4l2 is too
strict about return values.
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 0e09a3c9
......@@ -1452,7 +1452,7 @@ static int vidioc_s_ctrl(struct file *file, void *priv,
rc = em28xx_audio_analog_set(dev);
}
}
return rc;
return (rc < 0) ? rc : 0;
}
static int vidioc_g_tuner(struct file *file, void *priv,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册