[media] Fix the negative -E{BLAH} returns from fops_read
authorGavin Hurlbut <gjhurlbu@gmail.com>
Wed, 29 Sep 2010 18:18:20 +0000 (15:18 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 21 Oct 2010 09:55:29 +0000 (07:55 -0200)
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>
drivers/media/video/saa7164/saa7164-encoder.c

index edd888ec3c9be60c416d4afd293625f822a21dad..dfa43db09336700233a4640ea0d4009478f1c330 100644 (file)
@@ -1165,7 +1165,7 @@ static ssize_t fops_read(struct file *file, char __user *buffer,
        struct saa7164_port *port = fh->port;
        struct saa7164_user_buffer *ubuf = NULL;
        struct saa7164_dev *dev = port->dev;
-       unsigned int ret = 0;
+       int ret = 0;
        int rem, cnt;
        u8 *p;