]> git.baikalelectronics.ru Git - kernel.git/commitdiff
KVM: x86/i8259: Remove a dead store of irq in a conditional block
authorLike Xu <likexu@tencent.com>
Tue, 1 Mar 2022 12:02:17 +0000 (20:02 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 2 Apr 2022 09:41:19 +0000 (05:41 -0400)
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>
arch/x86/kvm/i8259.c

index be99dc86293de8d062bf60ef179149f5c3782459..e1bb6218bb96c35e1ba775aa18ec5b3b2276d32a 100644 (file)
@@ -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 {