diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-02-22 00:27:41 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-03-21 20:32:04 -0300 |
commit | 78e51566f0c56daa58f7bbe2591336b7d478c148 (patch) | |
tree | cee72102e7a5961b22552707e1b095da24935fb5 /drivers/media/video/em28xx/em28xx-video.c | |
parent | 0e09a3c92bfd54a6ac03f8225c4fd10f50111beb (diff) | |
download | linux-78e51566f0c56daa58f7bbe2591336b7d478c148.tar.gz linux-78e51566f0c56daa58f7bbe2591336b7d478c148.tar.bz2 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, |