Browse Source

arch: x86: kvm: x86.c: Cleaning up variable is set more than once

A struct member variable is set to the same value more than once

This was found using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Rickard Strandqvist 11 years ago
parent
commit
9f6226a762
1 changed files with 0 additions and 1 deletions
  1. 0 1
      arch/x86/kvm/x86.c

+ 0 - 1
arch/x86/kvm/x86.c

@@ -4730,7 +4730,6 @@ static void emulator_set_segment(struct x86_emulate_ctxt *ctxt, u16 selector,
 	if (desc->g)
 	if (desc->g)
 		var.limit = (var.limit << 12) | 0xfff;
 		var.limit = (var.limit << 12) | 0xfff;
 	var.type = desc->type;
 	var.type = desc->type;
-	var.present = desc->p;
 	var.dpl = desc->dpl;
 	var.dpl = desc->dpl;
 	var.db = desc->d;
 	var.db = desc->d;
 	var.s = desc->s;
 	var.s = desc->s;