Skip to content

Commit

Permalink
KVM: PPC: fix uninitialized variable warning in kvm_ppc_core_deliver_…
Browse files Browse the repository at this point in the history
…interrupts

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>
  • Loading branch information
Asias He authored and Avi Kivity committed Aug 1, 2010
1 parent 21bbe18 commit 6045be5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/kvm/booke.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6045be5

Please sign in to comment.