Skip to contentSkip to conversation

RISC-V: KVM: Remove second semicolon

PATCH In review Colin Ian King 2 participants 2 messages Mar 15, 2024 – Mar 25, 2024

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 RISC-V: KVM: Remove second semicolon

There is a statement with two semicolons. Remove the second one, it is redundant.

---
 arch/riscv/kvm/vcpu_onereg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/kvm/vcpu_onereg.c +1 -1
index f4a6124d25c9..994adc26db4b 100644
@@ -986,7 +986,7 @@ static int copy_isa_ext_reg_indices(const struct kvm_vcpu *vcpu,
 
 static inline unsigned long num_isa_ext_regs(const struct kvm_vcpu *vcpu)
 {
-	return copy_isa_ext_reg_indices(vcpu, NULL);;
+	return copy_isa_ext_reg_indices(vcpu, NULL);
 }
 
 static int copy_sbi_ext_reg_indices(struct kvm_vcpu *vcpu, u64 __user *uindices)
Signature · 1 line
2.39.2
maintainer
#1 lore raw
Quoted 5 lines · On Fri, Mar 15, 2024 at 2:59?PM Colin Ian King <[email protected]> wrote:

There is a statement with two semicolons. Remove the second one, it is redundant.

Queued this patch for Linux-6.9 fixes.

Thanks,
Anup

Quoted 20 lines
---
 arch/riscv/kvm/vcpu_onereg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/kvm/vcpu_onereg.c +1 -2
index f4a6124d25c9..994adc26db4b 100644
@@ -986,7 +986,7 @@ static int copy_isa_ext_reg_indices(const struct kvm_vcpu *vcpu,
 
 static inline unsigned long num_isa_ext_regs(const struct kvm_vcpu *vcpu)
 {
-       return copy_isa_ext_reg_indices(vcpu, NULL);;
+       return copy_isa_ext_reg_indices(vcpu, NULL);
 }
 
 static int copy_sbi_ext_reg_indices(struct kvm_vcpu *vcpu, u64 __user *uindices)
--

2.39.2