summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLike Xu <likexu@tencent.com>2022-03-01 20:02:17 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2022-04-02 05:41:19 -0400
commitfe3787a0d14920fa98c38a21431001c9d4edfe93 (patch)
treef366c7d6a2987c139bf3a9def8be32c010a4a3ad
parent1421211ae1de8cc547753080e9c9ffae8b67790f (diff)
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: Like Xu <likexu@tencent.com> Message-Id: <20220301120217.38092-1-likexu@tencent.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--arch/x86/kvm/i8259.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/kvm/i8259.c b/arch/x86/kvm/i8259.c
index be99dc86293d..e1bb6218bb96 100644
--- a/arch/x86/kvm/i8259.c
+++ b/arch/x86/kvm/i8259.c
@@ -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 {