提交 fe3787a0 编写于 作者: L Like Xu 提交者: Paolo Bonzini

KVM: x86/i8259: Remove a dead store of irq in a conditional block

The [clang-analyzer-deadcode.DeadStores] helper reports
that the value stored to 'irq' is never read.
Signed-off-by: NLike Xu <likexu@tencent.com>
Message-Id: <20220301120217.38092-1-likexu@tencent.com>
Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
上级 1421211a
...@@ -252,7 +252,6 @@ int kvm_pic_read_irq(struct kvm *kvm) ...@@ -252,7 +252,6 @@ int kvm_pic_read_irq(struct kvm *kvm)
*/ */
irq2 = 7; irq2 = 7;
intno = s->pics[1].irq_base + irq2; intno = s->pics[1].irq_base + irq2;
irq = irq2 + 8;
} else } else
intno = s->pics[0].irq_base + irq; intno = s->pics[0].irq_base + irq;
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册