Skip to content

Commit

Permalink
KVM: x86/i8259: Remove a dead store of irq in a conditional block
Browse files Browse the repository at this point in the history
The [clang-analyzer-deadcode.DeadStores] helper reports
that the value stored to 'irq' is never read.

Signed-off-by: Like Xu <likexu@tencent.com>
Message-Id: <20220301120217.38092-1-likexu@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
Like Xu authored and Paolo Bonzini committed Apr 2, 2022
1 parent 1421211 commit fe3787a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion arch/x86/kvm/i8259.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@ int kvm_pic_read_irq(struct kvm *kvm)
*/
irq2 = 7;
intno = s->pics[1].irq_base + irq2;
irq = irq2 + 8;
} else
intno = s->pics[0].irq_base + irq;
} else {
Expand Down

0 comments on commit fe3787a

Please sign in to comment.