Skip to contentSkip to conversation

remove duplicated check.

PATCH Applied Gleb Natapov 2 participants 2 messages Oct 25, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove duplicated check.

arch/x86/kvm/x86.c +0 -5
index 11a6f2f..384fbeb 100644
@@ -4375,11 +4375,6 @@ int kvm_task_switch(struct kvm_vcpu *vcpu, u16 tss_selector, int reason)
 	if (reason != TASK_SWITCH_CALL && reason != TASK_SWITCH_GATE)
 		old_tss_sel = 0xffff;
 
-	/* set back link to prev task only if NT bit is set in eflags
-	   note that old_tss_sel is not used afetr this point */
-	if (reason != TASK_SWITCH_CALL && reason != TASK_SWITCH_GATE)
-		old_tss_sel = 0xffff;
-
 	if (nseg_desc.type & 8)
 		ret = kvm_task_switch_32(vcpu, tss_selector, old_tss_sel,
 					 old_tss_base, &nseg_desc);

--
Gleb.

Applied
#1 lore raw
Quoted 1 line · Gleb Natapov

Applied, thanks.

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