]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
LoongArch: KVM: Remove unused returns and semicolons
authorTao Cui <cuitao@kylinos.cn>
Thu, 18 Sep 2025 11:44:22 +0000 (19:44 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Thu, 18 Sep 2025 11:44:22 +0000 (19:44 +0800)
The default branch has already handled all undefined cases, so the final
return statement is redundant. Redundant semicolons are removed, too.

Cc: stable@vger.kernel.org
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Tao Cui <cuitao@kylinos.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kvm/exit.c

index 2ce41f93b2a44462a71bf9cb1e3a836a41217c1f..6c9c7de7226b63b10f103f9e4741835e2af218fe 100644 (file)
@@ -778,10 +778,8 @@ static long kvm_save_notify(struct kvm_vcpu *vcpu)
                return 0;
        default:
                return KVM_HCALL_INVALID_CODE;
-       };
-
-       return KVM_HCALL_INVALID_CODE;
-};
+       }
+}
 
 /*
  * kvm_handle_lsx_disabled() - Guest used LSX while disabled in root.