]> Pileus Git - ~andy/linux/commitdiff
V4L/DVB (10732): zoran: s_jpegcomp should return a proper result, not 0.
authorHans Verkuil <hverkuil@xs4all.nl>
Fri, 20 Feb 2009 10:34:28 +0000 (07:34 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Mar 2009 15:42:59 +0000 (12:42 -0300)
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/zoran/zoran_driver.c

index c6da45b4164328e349ebcb6371d05387b5959e02..daad93728cf9606daee2e673f659e884f2e2fca2 100644 (file)
@@ -3119,7 +3119,7 @@ static int zoran_s_jpegcomp(struct file *file, void *__fh,
 sjpegc_unlock_and_return:
        mutex_unlock(&zr->resource_lock);
 
-       return 0;
+       return res;
 }
 
 static unsigned int