RISC-V: KVM: remove a redundant condition in kvm_arch_vcpu_ioctl_run()
authorChao Du <duchao@eswincomputing.com>
Mon, 11 Dec 2023 09:40:14 +0000 (09:40 +0000)
committerAnup Patel <anup@brainfault.org>
Fri, 29 Dec 2023 07:01:36 +0000 (12:31 +0530)
commitbcd08e9bae57b5585e438b7fa58aba4b145a59cf
tree7aefbe2c7a3ddf780a0bcc380def39cd3cdd0351
parente5ff012743cbc3cf13d2243aaaf032a2ca4d0791
RISC-V: KVM: remove a redundant condition in kvm_arch_vcpu_ioctl_run()

The latest ret value is updated by kvm_riscv_vcpu_aia_update(),
the loop will continue if the ret is less than or equal to zero.
So the later condition will never hit. Thus remove it.

Signed-off-by: Chao Du <duchao@eswincomputing.com>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/kvm/vcpu.c