From: Tao Cui Date: Thu, 18 Sep 2025 11:44:22 +0000 (+0800) Subject: LoongArch: KVM: Remove unused returns and semicolons X-Git-Tag: v6.17-rc7~13^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=091b29d53fe645781c5c1f405bc9fcd50ce5792b;p=thirdparty%2Fkernel%2Fstable.git 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 Signed-off-by: Tao Cui Signed-off-by: Huacai Chen --- diff --git a/arch/loongarch/kvm/exit.c b/arch/loongarch/kvm/exit.c index 2ce41f93b2a44..6c9c7de7226b6 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.