[PATCH] kill bogus casts in amd64 uaccess.h
authorAl Viro <viro@ftp.linux.org.uk>
Wed, 14 Mar 2007 09:20:20 +0000 (09:20 +0000)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 14 Mar 2007 22:27:50 +0000 (15:27 -0700)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/asm-x86_64/uaccess.h

index 1981f70..9df30b9 100644 (file)
@@ -373,12 +373,12 @@ extern long __copy_user_nocache(void *dst, const void __user *src, unsigned size
 static inline int __copy_from_user_nocache(void *dst, const void __user *src, unsigned size)
 {
        might_sleep();
-       return __copy_user_nocache(dst, (__force void *)src, size, 1);
+       return __copy_user_nocache(dst, src, size, 1);
 }
 
 static inline int __copy_from_user_inatomic_nocache(void *dst, const void __user *src, unsigned size)
 {
-       return __copy_user_nocache(dst, (__force void *)src, size, 0);
+       return __copy_user_nocache(dst, src, size, 0);
 }
 
 #endif /* __X86_64_UACCESS_H */