]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - arch/m32r/kernel/ptrace.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu
[mv-sheeva.git] / arch / m32r / kernel / ptrace.c
index bf0abe9e1f73e9bc9f30b1162df1577f75f51907..98682bba0ed9c3aedf0bc86ee43ef68e20333fc4 100644 (file)
@@ -19,7 +19,6 @@
 #include <linux/mm.h>
 #include <linux/err.h>
 #include <linux/smp.h>
-#include <linux/smp_lock.h>
 #include <linux/errno.h>
 #include <linux/ptrace.h>
 #include <linux/user.h>
@@ -78,7 +77,7 @@ static int ptrace_read_user(struct task_struct *tsk, unsigned long off,
        struct user * dummy = NULL;
 #endif
 
-       if ((off & 3) || (off < 0) || (off > sizeof(struct user) - 3))
+       if ((off & 3) || off > sizeof(struct user) - 3)
                return -EIO;
 
        off >>= 2;
@@ -140,8 +139,7 @@ static int ptrace_write_user(struct task_struct *tsk, unsigned long off,
        struct user * dummy = NULL;
 #endif
 
-       if ((off & 3) || off < 0 ||
-           off > sizeof(struct user) - 3)
+       if ((off & 3) || off > sizeof(struct user) - 3)
                return -EIO;
 
        off >>= 2;