riscv: kvm: vcpu_timer: fix unused variable warnings
authorConor Dooley <conor.dooley@microchip.com>
Sun, 14 Aug 2022 14:12:35 +0000 (15:12 +0100)
committerAnup Patel <anup@brainfault.org>
Fri, 19 Aug 2022 17:52:44 +0000 (23:22 +0530)
commitfd0cd59f322b1919bfc68cd245d51906f7f1ba2a
tree0ef4378989da514de66793e69de3cd3fbe802163
parent568035b01cfb107af8d2e4bd2fb9aea22cf5b868
riscv: kvm: vcpu_timer: fix unused variable warnings

In two places, csr is set but never used:

arch/riscv/kvm/vcpu_timer.c:302:23: warning: variable 'csr' set but not used [-Wunused-but-set-variable]
        struct kvm_vcpu_csr *csr;
                             ^
arch/riscv/kvm/vcpu_timer.c:327:23: warning: variable 'csr' set but not used [-Wunused-but-set-variable]
        struct kvm_vcpu_csr *csr;
                             ^

Remove the variable.

Fixes: 8f5cb44b1bae ("RISC-V: KVM: Support sstc extension")
Reviewed-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/kvm/vcpu_timer.c