From: Helge Deller Date: Tue, 12 Nov 2013 20:01:24 +0000 (+0100) Subject: parisc: size_t is unsigned, so comparison size < 0 doesn't make sense. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=964f413323e8306ac0acb5e08ccdb5f12418835b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git parisc: size_t is unsigned, so comparison size < 0 doesn't make sense. Signed-off-by: Helge Deller CC: Mikulas Patocka --- diff --git a/arch/parisc/lib/memcpy.c b/arch/parisc/lib/memcpy.c index 6c5b5d35bfc0..413dc1769299 100644 --- a/arch/parisc/lib/memcpy.c +++ b/arch/parisc/lib/memcpy.c @@ -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? */