diff options
author | Tang Chen <tangchen@cn.fujitsu.com> | 2014-09-16 18:41:59 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-09-17 13:10:12 +0200 |
commit | f51770ed465e6eb41da7fa16fd92eb67069600cf (patch) | |
tree | be1cceaafe499026b0c93d2617f9af64f2ed41f1 /virt | |
parent | a255d4795f83cf3e6a1c7d5ab998392d9413298c (diff) | |
download | op-kernel-dev-f51770ed465e6eb41da7fa16fd92eb67069600cf.zip op-kernel-dev-f51770ed465e6eb41da7fa16fd92eb67069600cf.tar.gz |
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 'virt')
0 files changed, 0 insertions, 0 deletions