Skip to content

Commit 9f6226a

Browse files
Rickard Strandqvistbonzini
authored andcommitted
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>
1 parent ab76228 commit 9f6226a

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎arch/x86/kvm/x86.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4730,7 +4730,6 @@ static void emulator_set_segment(struct x86_emulate_ctxt *ctxt, u16 selector,
47304730
if (desc->g)
47314731
var.limit = (var.limit << 12) | 0xfff;
47324732
var.type = desc->type;
4733-
var.present = desc->p;
47344733
var.dpl = desc->dpl;
47354734
var.db = desc->d;
47364735
var.s = desc->s;

0 commit comments

Comments
 (0)