[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c70e595e-c1ab-2c8a-3f46-3862ecd6e0b8@loongson.cn>
Date: Thu, 4 Sep 2025 14:15:06 +0800
From: Bibo Mao <maobibo@...ngson.cn>
To: cuitao <cuitao@...inos.cn>, zhaotianrui@...ngson.cn,
chenhuacai@...nel.org, loongarch@...ts.linux.dev
Cc: kernel@...0n.name, kvm@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] LoongArch: KVM: remove unused returns.
On 2025/9/4 下午12:26, cuitao wrote:
> The default branch has already handled all undefined cases,
> so the final return statement is redundant.
>
> Signed-off-by: cuitao <cuitao@...inos.cn>
> ---
> arch/loongarch/kvm/exit.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/arch/loongarch/kvm/exit.c b/arch/loongarch/kvm/exit.c
> index 2ce41f93b2a4..e501867740b1 100644
> --- a/arch/loongarch/kvm/exit.c
> +++ b/arch/loongarch/kvm/exit.c
> @@ -778,9 +778,7 @@ static long kvm_save_notify(struct kvm_vcpu *vcpu)
> return 0;
> default:
> return KVM_HCALL_INVALID_CODE;
> - };
> -
> - return KVM_HCALL_INVALID_CODE;
> + }
> };
>
> /*
>
Reviewed-by: Bibo Mao <maobibo@...ngson.cn>
Powered by blists - more mailing lists