From: Al Viro Date: Wed, 14 Mar 2007 09:20:20 +0000 (+0000) Subject: [PATCH] kill bogus casts in amd64 uaccess.h X-Git-Tag: v2.6.21-rc4~10 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ecb7524c5d85c04d1b396f80bf4c765db5f3f442;p=linux-2.6-omap-h63xx.git [PATCH] kill bogus casts in amd64 uaccess.h Signed-off-by: Al Viro Signed-off-by: Linus Torvalds --- diff --git a/include/asm-x86_64/uaccess.h b/include/asm-x86_64/uaccess.h index 1981f70fcad..9df30b939c4 100644 --- a/include/asm-x86_64/uaccess.h +++ b/include/asm-x86_64/uaccess.h @@ -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 */