]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[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 1981f70fcad1b1212fa1a3d464f8e0b05608f009..9df30b939c4eb1121285e0cad59dd6385ca4ddc4 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 */