diff options
author | Eugene Korenevsky <ekorenevsky@gmail.com> | 2015-03-28 18:27:17 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-03-30 10:57:15 -0400 |
commit | 2f729b10bb74f97797beb310113f6182f262d36a (patch) | |
tree | 3df79b2c9b098b5464a6d8ab85ce9d2e49530f9f /arch/x86/kvm/emulate.c | |
parent | b32a99180027ec980af971d548781eac1f6bb9b5 (diff) |
KVM: remove useless check of "ret" variable prior to returning the same value
A trivial code cleanup. This `if` is redundant.
Signed-off-by: Eugene Korenevsky <ekorenevsky@gmail.com>
Message-Id: <20150328222717.GA6508@gnote>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/emulate.c')
-rw-r--r-- | arch/x86/kvm/emulate.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index cf7d424b29d2..b304728aabe3 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c | |||
@@ -2791,10 +2791,8 @@ static int load_state_from_tss32(struct x86_emulate_ctxt *ctxt, | |||
2791 | return ret; | 2791 | return ret; |
2792 | ret = __load_segment_descriptor(ctxt, tss->gs, VCPU_SREG_GS, cpl, | 2792 | ret = __load_segment_descriptor(ctxt, tss->gs, VCPU_SREG_GS, cpl, |
2793 | X86_TRANSFER_TASK_SWITCH, NULL); | 2793 | X86_TRANSFER_TASK_SWITCH, NULL); |
2794 | if (ret != X86EMUL_CONTINUE) | ||
2795 | return ret; | ||
2796 | 2794 | ||
2797 | return X86EMUL_CONTINUE; | 2795 | return ret; |
2798 | } | 2796 | } |
2799 | 2797 | ||
2800 | static int task_switch_32(struct x86_emulate_ctxt *ctxt, | 2798 | static int task_switch_32(struct x86_emulate_ctxt *ctxt, |