-
Tang Chen authored
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>
f51770ed