aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/saa7164
diff options
context:
space:
mode:
authorGavin Hurlbut <gjhurlbu@gmail.com>2010-09-29 14:18:20 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-10-21 05:55:29 -0400
commitf20a07d431c3c516c37beff9638f70c8e059a3fc (patch)
tree42bd07f7ec94b5cd20b0487d7fc7875895aa9645 /drivers/media/video/saa7164
parentf89076c5f13dc2fafd6c4a411111f1be7aab0098 (diff)
[media] Fix the negative -E{BLAH} returns from fops_read
Signed-off-by: Gavin Hurlbut <gjhurlbu@gmail.com> Signed-off-by: Steven Toth <stoth@kernellabs.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/saa7164')
-rw-r--r--drivers/media/video/saa7164/saa7164-encoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/saa7164/saa7164-encoder.c b/drivers/media/video/saa7164/saa7164-encoder.c
index edd888ec3c9b..dfa43db09336 100644
--- a/drivers/media/video/saa7164/saa7164-encoder.c
+++ b/drivers/media/video/saa7164/saa7164-encoder.c
@@ -1165,7 +1165,7 @@ static ssize_t fops_read(struct file *file, char __user *buffer,
1165 struct saa7164_port *port = fh->port; 1165 struct saa7164_port *port = fh->port;
1166 struct saa7164_user_buffer *ubuf = NULL; 1166 struct saa7164_user_buffer *ubuf = NULL;
1167 struct saa7164_dev *dev = port->dev; 1167 struct saa7164_dev *dev = port->dev;
1168 unsigned int ret = 0; 1168 int ret = 0;
1169 int rem, cnt; 1169 int rem, cnt;
1170 u8 *p; 1170 u8 *p;
1171 1171