Skip to content

Commit

Permalink
parisc: size_t is unsigned, so comparison size < 0 doesn't make sense.
Browse files Browse the repository at this point in the history
Signed-off-by: Helge Deller <[email protected]>
CC: Mikulas Patocka <[email protected]>
  • Loading branch information
hdeller committed Nov 19, 2013
1 parent 49d1cb2 commit 964f413
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/parisc/lib/memcpy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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? */
Expand Down

0 comments on commit 964f413

Please sign in to comment.