diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-06-10 00:31:21 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-06-11 12:35:18 -0400 |
commit | cd18eaeaffa6e5291cdbcd591334d577c4e897df (patch) | |
tree | 0e84cff907ddc889e251eb966ddd6bf52380986b /arch/x86 | |
parent | 384dea1c9183880be183cfaae161d99aafd16df6 (diff) | |
download | linux-cd18eaeaffa6e5291cdbcd591334d577c4e897df.tar.gz linux-cd18eaeaffa6e5291cdbcd591334d577c4e897df.tar.bz2 linux-cd18eaeaffa6e5291cdbcd591334d577c4e897df.zip |
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 <colin.king@canonical.com>
Message-Id: <20200609233121.1118683-1-colin.king@canonical.com>
Fixes: 7837699fa6d7 ("KVM: In kernel PIT model")
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kvm/i8254.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/kvm/i8254.c b/arch/x86/kvm/i8254.c index febca334c320..a6e218c6140d 100644 --- a/arch/x86/kvm/i8254.c +++ b/arch/x86/kvm/i8254.c @@ -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); |