diff mbox

[4/16] drivers/media/video/zoran: Use available error codes

Message ID Pine.LNX.4.64.1008161825220.19313@ask.diku.dk (mailing list archive)
State Accepted
Headers show

Commit Message

Julia Lawall Aug. 16, 2010, 4:25 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/media/video/zoran/zoran_driver.c b/drivers/media/video/zoran/zoran_driver.c
index 6f89d0a..c155ddf 100644
--- a/drivers/media/video/zoran/zoran_driver.c
+++ b/drivers/media/video/zoran/zoran_driver.c
@@ -3322,7 +3322,7 @@  zoran_mmap (struct file           *file,
 mmap_unlock_and_return:
 	mutex_unlock(&zr->resource_lock);
 
-	return 0;
+	return res;
 }
 
 static const struct v4l2_ioctl_ops zoran_ioctl_ops = {