KVM: PPC: fix uninitialized variable warning in kvm_ppc_core_deliver_interrupts
authorAsias He <asias.hejun@gmail.com>
Sat, 19 Jun 2010 08:52:12 +0000 (16:52 +0800)
committerAvi Kivity <avi@redhat.com>
Sun, 1 Aug 2010 07:46:53 +0000 (10:46 +0300)
Fixes:
arch/powerpc/kvm/booke.c: In function 'kvmppc_core_deliver_interrupts':
arch/powerpc/kvm/booke.c:147: warning: 'msr_mask' may be used uninitialized in this function

Signed-off-by: Asias He <asias.hejun@gmail.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/kvm/booke.c

index b687f430f8c0134b7777f50693b17184fd102dc4..8d4e35f5372c85d942d373b89a638f0189093c69 100644 (file)
@@ -144,7 +144,7 @@ static int kvmppc_booke_irqprio_deliver(struct kvm_vcpu *vcpu,
                                         unsigned int priority)
 {
        int allowed = 0;
-       ulong msr_mask;
+       ulong uninitialized_var(msr_mask);
        bool update_esr = false, update_dear = false;
 
        switch (priority) {