* [PATCH] uml get_user() NULL noise removal
@ 2005-09-30 2:29 Al Viro
0 siblings, 0 replies; only message in thread
From: Al Viro @ 2005-09-30 2:29 UTC (permalink / raw)
To: Linus Torvalds; +Cc: jdike, linux-kernel
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
----
diff -urN RC14-rc2-git6-base/include/asm-um/uaccess.h current/include/asm-um/uaccess.h
--- RC14-rc2-git6-base/include/asm-um/uaccess.h 2005-09-26 00:02:29.000000000 -0400
+++ current/include/asm-um/uaccess.h 2005-09-24 01:43:27.000000000 -0400
@@ -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; \
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-09-30 2:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-30 2:29 [PATCH] uml get_user() NULL noise removal Al Viro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox