Commit cd18eaea authored by Colin Ian King's avatar Colin Ian King Committed by Paolo Bonzini

kvm: i8254: remove redundant assignment to pointer s

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: default avatarColin Ian King <colin.king@canonical.com>
Message-Id: <20200609233121.1118683-1-colin.king@canonical.com>
Fixes: 7837699f ("KVM: In kernel PIT model")
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 384dea1c
...@@ -462,7 +462,6 @@ static int pit_ioport_write(struct kvm_vcpu *vcpu, ...@@ -462,7 +462,6 @@ static int pit_ioport_write(struct kvm_vcpu *vcpu,
if (channel == 3) { if (channel == 3) {
/* Read-Back Command. */ /* Read-Back Command. */
for (channel = 0; channel < 3; channel++) { for (channel = 0; channel < 3; channel++) {
s = &pit_state->channels[channel];
if (val & (2 << channel)) { if (val & (2 << channel)) {
if (!(val & 0x20)) if (!(val & 0x20))
pit_latch_count(pit, channel); pit_latch_count(pit, channel);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment