summaryrefslogtreecommitdiffstats
path: root/include/asm-um
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2005-09-30 04:29:05 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-30 17:42:24 +0200
commit4735885701d7c24ed54f35f5102d32b3aabee55e (patch)
tree125702971689630aa0a8ff67f7433a6f8cefaf36 /include/asm-um
parent[PATCH] cpuset crapectomy (diff)
downloadlinux-4735885701d7c24ed54f35f5102d32b3aabee55e.tar.xz
linux-4735885701d7c24ed54f35f5102d32b3aabee55e.zip
[PATCH] uml get_user() NULL noise removal
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-um')
-rw-r--r--include/asm-um/uaccess.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-um/uaccess.h b/include/asm-um/uaccess.h
index 801710d00a40..2ee028b8de9d 100644
--- a/include/asm-um/uaccess.h
+++ b/include/asm-um/uaccess.h
@@ -44,7 +44,7 @@
const __typeof__(ptr) __private_ptr = ptr; \
__typeof__(*(__private_ptr)) __private_val; \
int __private_ret = -EFAULT; \
- (x) = 0; \
+ (x) = (__typeof__(*(__private_ptr)))0; \
if (__copy_from_user(&__private_val, (__private_ptr), \
sizeof(*(__private_ptr))) == 0) {\
(x) = (__typeof__(*(__private_ptr))) __private_val; \