Re: [PATCH] LoongArch: KVM: remove unused returns.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Huacai

>
>





[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux