From: Heiko Carstens Date: Tue, 5 Mar 2013 12:14:43 +0000 (+0100) Subject: s390/kvm: remove explicit -EFAULT return code checking on guest access X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~32^2~113 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc5008b9bf6adb0c0a5afba6fb376a85451b2697;p=pandora-kernel.git s390/kvm: remove explicit -EFAULT return code checking on guest access Let's change to the paradigm that every return code from guest memory access functions that is not zero translates to -EFAULT and do not explictly compare. Explictly comparing the return value with -EFAULT has already shown to be a bit fragile. In addition this is closer to the handling of copy_to/from_user functions, which imho is in general a good idea. Also shorten the return code handling in interrupt.c a bit. Signed-off-by: Heiko Carstens Acked-by: Christian Borntraeger Signed-off-by: Martin Schwidefsky Signed-off-by: Christian Borntraeger Signed-off-by: Marcelo Tosatti --- Reading git-diff-tree failed