From: Hans Verkuil Date: Fri, 20 Feb 2009 10:34:28 +0000 (-0300) Subject: V4L/DVB (10732): zoran: s_jpegcomp should return a proper result, not 0. X-Git-Tag: MMI-PSA29.97-13-9~29189^2~410 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=27f79525738ef626dfd4df5798bfb86ad5d6d98e;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git V4L/DVB (10732): zoran: s_jpegcomp should return a proper result, not 0. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/zoran/zoran_driver.c b/drivers/media/video/zoran/zoran_driver.c index c6da45b41643..daad93728cf9 100644 --- a/drivers/media/video/zoran/zoran_driver.c +++ b/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