lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAAhV-H7j=7RSsyNFkfT_t0GuhzNL1kX1XaWhk3uU=VqYWtRiow@mail.gmail.com>
Date: Thu, 4 Sep 2025 14:25:26 +0800
From: Huacai Chen <chenhuacai@...nel.org>
To: Bibo Mao <maobibo@...ngson.cn>
Cc: cuitao <cuitao@...inos.cn>, zhaotianrui@...ngson.cn, loongarch@...ts.linux.dev, 
	kernel@...0n.name, kvm@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] LoongArch: KVM: remove unused returns.

On Thu, Sep 4, 2025 at 2:17 PM Bibo Mao <maobibo@...ngson.cn> wrote:
>
>
>
> 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>
Applied, thanks.

Huacai

>
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ