summaryrefslogtreecommitdiffstats
path: root/arch/x86/video
diff options
context:
space:
mode:
authorTang Chen2014-09-16 12:41:59 +0200
committerPaolo Bonzini2014-09-17 13:10:12 +0200
commitf51770ed465e6eb41da7fa16fd92eb67069600cf (patch)
treebe1cceaafe499026b0c93d2617f9af64f2ed41f1 /arch/x86/video
parentkvm: Remove ept_identity_pagetable from struct kvm_arch. (diff)
downloadkernel-qcow2-linux-f51770ed465e6eb41da7fa16fd92eb67069600cf.tar.gz
kernel-qcow2-linux-f51770ed465e6eb41da7fa16fd92eb67069600cf.tar.xz
kernel-qcow2-linux-f51770ed465e6eb41da7fa16fd92eb67069600cf.zip
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 <tangchen@cn.fujitsu.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/video')
0 files changed, 0 insertions, 0 deletions