Skip to content

Commit

Permalink
[PATCH] kill bogus casts in amd64 uaccess.h
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Mar 14, 2007
1 parent 7ccec1b commit ecb7524
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/asm-x86_64/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit ecb7524

Please sign in to comment.