Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f6226a7 authored by Rickard Strandqvist's avatar Rickard Strandqvist Committed by Paolo Bonzini
Browse files

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: default avatarRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent ab76228a
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -4730,7 +4730,6 @@ static void emulator_set_segment(struct x86_emulate_ctxt *ctxt, u16 selector,
	if (desc->g)
		var.limit = (var.limit << 12) | 0xfff;
	var.type = desc->type;
	var.present = desc->p;
	var.dpl = desc->dpl;
	var.db = desc->d;
	var.s = desc->s;