Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Rickard Strandqvist and committed by
Paolo Bonzini
9f6226a7 ab76228a

-1
-1
arch/x86/kvm/x86.c
··· 4730 4730 if (desc->g) 4731 4731 var.limit = (var.limit << 12) | 0xfff; 4732 4732 var.type = desc->type; 4733 - var.present = desc->p; 4734 4733 var.dpl = desc->dpl; 4735 4734 var.db = desc->d; 4736 4735 var.s = desc->s;