parisc: size_t is unsigned, so comparison size < 0 doesn't make sense.
authorHelge Deller <deller@gmx.de>
Tue, 12 Nov 2013 20:01:24 +0000 (21:01 +0100)
committerHelge Deller <deller@gmx.de>
Tue, 19 Nov 2013 23:09:42 +0000 (00:09 +0100)
Signed-off-by: Helge Deller <deller@gmx.de>
CC: Mikulas Patocka <mpatocka@redhat.com>
arch/parisc/lib/memcpy.c

index 6c5b5d35bfc023bf6bb146e47d04601d4cab85b1..413dc1769299685f00289193ca301ba7e2c0839d 100644 (file)
@@ -529,7 +529,7 @@ long probe_kernel_read(void *dst, const void *src, size_t size)
 {
        unsigned long addr = (unsigned long)src;
 
-       if (size < 0 || addr < PAGE_SIZE)
+       if (addr < PAGE_SIZE)
                return -EFAULT;
 
        /* check for I/O space F_EXTEND(0xfff00000) access as well? */