projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b32a991
)
KVM: remove useless check of "ret" variable prior to returning the same value
author
Eugene Korenevsky
<ekorenevsky@gmail.com>
Sat, 28 Mar 2015 22:27:17 +0000
(
01:27
+0300)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Mon, 30 Mar 2015 14:57:15 +0000
(16:57 +0200)
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>
arch/x86/kvm/emulate.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/emulate.c
b/arch/x86/kvm/emulate.c
index cf7d424b29d20578af8a971864d8ae4557b7167b..b304728aabe3b20143bfa91af74726f2d732e911 100644
(file)
--- 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,
return ret;
ret = __load_segment_descriptor(ctxt, tss->gs, VCPU_SREG_GS, cpl,
X86_TRANSFER_TASK_SWITCH, NULL);
- if (ret != X86EMUL_CONTINUE)
- return ret;
- return
X86EMUL_CONTINUE
;
+ return
ret
;
}
static int task_switch_32(struct x86_emulate_ctxt *ctxt,