commit | f51770ed465e6eb41da7fa16fd92eb67069600cf | [log] [tgz] |
---|---|---|
author | Tang Chen <tangchen@cn.fujitsu.com> | Tue Sep 16 18:41:59 2014 +0800 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Wed Sep 17 13:10:12 2014 +0200 |
tree | be1cceaafe499026b0c93d2617f9af64f2ed41f1 | |
parent | a255d4795f83cf3e6a1c7d5ab998392d9413298c [diff] |
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>