diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-02-22 04:27:41 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-03-22 00:32:04 +0100 |
commit | 78e51566f0c56daa58f7bbe2591336b7d478c148 (patch) | |
tree | cee72102e7a5961b22552707e1b095da24935fb5 /drivers/media/video/em28xx/em28xx-video.c | |
parent | [media] tvp5150: device detection should be done only once (diff) | |
download | linux-78e51566f0c56daa58f7bbe2591336b7d478c148.tar.xz linux-78e51566f0c56daa58f7bbe2591336b7d478c148.zip |
[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: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/em28xx/em28xx-video.c')
-rw-r--r-- | drivers/media/video/em28xx/em28xx-video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/em28xx/em28xx-video.c b/drivers/media/video/em28xx/em28xx-video.c index f34d524ccb09..1ddd3ee22812 100644 --- a/drivers/media/video/em28xx/em28xx-video.c +++ b/drivers/media/video/em28xx/em28xx-video.c @@ -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, |