Skip to contentSkip to conversation

KVM: x86: Remove set-but-unused cr4 from check_cr_write

PATCH Applied Jan Kiszka 2 participants 2 messages Dec 2, 2011 – Dec 4, 2011

Subsystems (3)
lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 KVM: x86: Remove set-but-unused cr4 from check_cr_write

This was probably copy&pasted from the cr0 case, but it's unneeded here.

---
 arch/x86/kvm/emulate.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
arch/x86/kvm/emulate.c +0 -3
index ac8e5ed..f641201 100644
@@ -3028,9 +3028,6 @@ static int check_cr_write(struct x86_emulate_ctxt *ctxt)
 		break;
 		}
 	case 4: {
-		u64 cr4;
-
-		cr4 = ctxt->ops->get_cr(ctxt, 4);
 		ctxt->ops->get_msr(ctxt, MSR_EFER, &efer);
 
 		if ((efer & EFER_LMA) && !(new_val & X86_CR4_PAE))
Signature · 1 line
1.7.3.4
Applied
#1 lore raw
Quoted 3 lines · Jan Kiszka

This was probably copy&pasted from the cr0 case, but it's unneeded here.

Applied, thanks.

Signature · 1 line
error compiling committee.c: too many arguments to function