diff options
author | Tao Cui <cuitao@kylinos.cn> | 2025-09-18 19:44:22 +0800 |
---|---|---|
committer | Huacai Chen <chenhuacai@loongson.cn> | 2025-09-18 19:44:22 +0800 |
commit | 091b29d53fe645781c5c1f405bc9fcd50ce5792b (patch) | |
tree | 42ab729284e291c01f23602b827813aee697aa19 | |
parent | ac398f570724c41e5e039d54e4075519f6af7408 (diff) |
LoongArch: KVM: Remove unused returns and semicolons
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>
-rw-r--r-- | arch/loongarch/kvm/exit.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/loongarch/kvm/exit.c b/arch/loongarch/kvm/exit.c index 2ce41f93b2a4..6c9c7de7226b 100644 --- a/arch/loongarch/kvm/exit.c +++ b/arch/loongarch/kvm/exit.c @@ -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. |