Browse Source

V4L/DVB (10732): zoran: s_jpegcomp should return a proper result, not 0.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Hans Verkuil 16 years ago
parent
commit
27f7952573
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/media/video/zoran/zoran_driver.c

+ 1 - 1
drivers/media/video/zoran/zoran_driver.c

@@ -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