tty: switch size and count types in iterate_tty_read() to size_t
[linux-2.6-block.git] / drivers / tty / tty_io.c
index e8248773e3f02dc673a547cc3624f992d31ae6af..7cfa99fbbb62f5b9773c19a1974fac7c852a7e39 100644 (file)
@@ -850,10 +850,10 @@ static ssize_t iterate_tty_read(struct tty_ldisc *ld, struct tty_struct *tty,
        unsigned long offset = 0;
        char kernel_buf[64];
        ssize_t retval = 0;
-       size_t count = iov_iter_count(to);
+       size_t copied, count = iov_iter_count(to);
 
        do {
-               int size, copied;
+               ssize_t size;
 
                size = count > sizeof(kernel_buf) ? sizeof(kernel_buf) : count;
                size = ld->ops->read(tty, file, kernel_buf, size, &cookie, offset);