diff options
author | Helge Deller <deller@gmx.de> | 2013-11-12 15:01:24 -0500 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2013-11-19 18:09:42 -0500 |
commit | 964f413323e8306ac0acb5e08ccdb5f12418835b (patch) | |
tree | 717807e78c2b118180264b4b3bc1115cfa6ebe07 /arch/parisc | |
parent | 49d1cb2bcadfc5cea4b700a0ec6b957567889714 (diff) |
parisc: size_t is unsigned, so comparison size < 0 doesn't make sense.
Signed-off-by: Helge Deller <deller@gmx.de>
CC: Mikulas Patocka <mpatocka@redhat.com>
Diffstat (limited to 'arch/parisc')
-rw-r--r-- | arch/parisc/lib/memcpy.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
529 | { | 529 | { |
530 | unsigned long addr = (unsigned long)src; | 530 | unsigned long addr = (unsigned long)src; |
531 | 531 | ||
532 | if (size < 0 || addr < PAGE_SIZE) | 532 | if (addr < PAGE_SIZE) |
533 | return -EFAULT; | 533 | return -EFAULT; |
534 | 534 | ||
535 | /* check for I/O space F_EXTEND(0xfff00000) access as well? */ | 535 | /* check for I/O space F_EXTEND(0xfff00000) access as well? */ |