]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[media] em28xx: Fix return value for s_ctrl
authorMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 22 Feb 2011 03:27:41 +0000 (00:27 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 21 Mar 2011 23:32:04 +0000 (20:32 -0300)
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>
drivers/media/video/em28xx/em28xx-video.c

index f34d524ccb09fe30169e81eb18e92497816a3f11..1ddd3ee22812a6fc415d2aedd451651d9db90d78 100644 (file)
@@ -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,