Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 47358857 authored by Al Viro's avatar Al Viro Committed by Linus Torvalds
Browse files

[PATCH] uml get_user() NULL noise removal

parent eacaa1f5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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; \