]> git.baikalelectronics.ru Git - kernel.git/commitdiff
kvm: i8254: remove redundant assignment to pointer s
authorColin Ian King <colin.king@canonical.com>
Tue, 9 Jun 2020 23:31:21 +0000 (00:31 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 11 Jun 2020 16:35:18 +0000 (12:35 -0400)
The pointer s is being assigned a value that is never read, the
assignment is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Message-Id: <20200609233121.1118683-1-colin.king@canonical.com>
Fixes: 10e0eeeb9360 ("KVM: In kernel PIT model")
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/i8254.c

index febca334c32068943294cb5ff5c5113cf72f7d16..a6e218c6140def3a0ea6fa5e3dd3f8bc66b7344c 100644 (file)
@@ -462,7 +462,6 @@ static int pit_ioport_write(struct kvm_vcpu *vcpu,
                if (channel == 3) {
                        /* Read-Back Command. */
                        for (channel = 0; channel < 3; channel++) {
-                               s = &pit_state->channels[channel];
                                if (val & (2 << channel)) {
                                        if (!(val & 0x20))
                                                pit_latch_count(pit, channel);