]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: remove dead initialization
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 9 Aug 2021 11:00:58 +0000 (07:00 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 13 Aug 2021 07:20:18 +0000 (03:20 -0400)
commitebf2c065195a638abdad7e9fc9279f31645c633f
tree2b14a5e2955a6737715df213df1eda5491aaccbf
parent50b1e4d5f65fb0a5c4d1d0b2a13ba547999bc579
KVM: x86: remove dead initialization

hv_vcpu is initialized again a dozen lines below, and at this
point vcpu->arch.hyperv is not valid.  Remove the initializer.

Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/hyperv.c