Skip to contentSkip to conversation

kill bogus casts in amd64 uaccess.h

PATCH In review Al Viro 1 participant 1 message Mar 14, 2007

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 15/17 kill bogus casts in amd64 uaccess.h

---
 include/asm-x86_64/uaccess.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
include/asm-x86_64/uaccess.h +2 -2
index 1981f70..9df30b9 100644
@@ -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 */
Signature · 1 line
1.5.0-rc2.GIT