Skip to content

Commit cd18eae

Browse files
Colin Ian Kingbonzini
authored andcommitted
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: Colin Ian King <[email protected]> Message-Id: <[email protected]> Fixes: 7837699 ("KVM: In kernel PIT model") Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 384dea1 commit cd18eae

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

arch/x86/kvm/i8254.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,6 @@ static int pit_ioport_write(struct kvm_vcpu *vcpu,
462462
if (channel == 3) {
463463
/* Read-Back Command. */
464464
for (channel = 0; channel < 3; channel++) {
465-
s = &pit_state->channels[channel];
466465
if (val & (2 << channel)) {
467466
if (!(val & 0x20))
468467
pit_latch_count(pit, channel);

0 commit comments

Comments
 (0)