From: Tang Chen Date: Tue, 16 Sep 2014 10:41:59 +0000 (+0800) Subject: kvm: Make init_rmode_identity_map() return 0 on success. X-Git-Tag: fixes-for-v3.18-merge-window~23^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f51770ed465e6eb41da7fa16fd92eb67069600cf;p=pandora-kernel.git kvm: Make init_rmode_identity_map() return 0 on success. In init_rmode_identity_map(), there two variables indicating the return value, r and ret, and it return 0 on error, 1 on success. The function is only called by vmx_create_vcpu(), and ret is redundant. This patch removes the redundant variable, and makes init_rmode_identity_map() return 0 on success, -errno on failure. Signed-off-by: Tang Chen Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed