From: Al Viro Date: Fri, 30 Sep 2005 02:29:05 +0000 (+0100) Subject: [PATCH] uml get_user() NULL noise removal X-Git-Tag: v2.6.14-rc3~38 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4735885701d7c24ed54f35f5102d32b3aabee55e;p=linux-2.6 [PATCH] uml get_user() NULL noise removal Signed-off-by: Al Viro Signed-off-by: Linus Torvalds --- diff --git a/include/asm-um/uaccess.h b/include/asm-um/uaccess.h index 801710d00a..2ee028b8de 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; \