2021-02-02 02:19:00

by Yang Li

[permalink] [raw]
Subject: [PATCH] KVM: MIPS: remove unneeded semicolon

Eliminate the following coccicheck warning:
./arch/mips/kvm/mips.c:151:2-3: Unneeded semicolon

Reported-by: Abaci Robot <[email protected]>
Signed-off-by: Yang Li <[email protected]>
---
arch/mips/kvm/mips.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/kvm/mips.c b/arch/mips/kvm/mips.c
index 3d6a7f5..58a8812 100644
--- a/arch/mips/kvm/mips.c
+++ b/arch/mips/kvm/mips.c
@@ -148,7 +148,7 @@ int kvm_arch_init_vm(struct kvm *kvm, unsigned long type)
default:
/* Unsupported KVM type */
return -EINVAL;
- };
+ }

/* Allocate page table to map GPA -> RPA */
kvm->arch.gpa_mm.pgd = kvm_pgd_alloc();
--
1.8.3.1


2021-02-02 04:46:13

by Huacai Chen

[permalink] [raw]
Subject: Re: [PATCH] KVM: MIPS: remove unneeded semicolon

Reviewed-by: Huacai Chen <[email protected]>

On Tue, Feb 2, 2021 at 10:15 AM Yang Li <[email protected]> wrote:
>
> Eliminate the following coccicheck warning:
> ./arch/mips/kvm/mips.c:151:2-3: Unneeded semicolon
>
> Reported-by: Abaci Robot <[email protected]>
> Signed-off-by: Yang Li <[email protected]>
> ---
> arch/mips/kvm/mips.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/mips/kvm/mips.c b/arch/mips/kvm/mips.c
> index 3d6a7f5..58a8812 100644
> --- a/arch/mips/kvm/mips.c
> +++ b/arch/mips/kvm/mips.c
> @@ -148,7 +148,7 @@ int kvm_arch_init_vm(struct kvm *kvm, unsigned long type)
> default:
> /* Unsupported KVM type */
> return -EINVAL;
> - };
> + }
>
> /* Allocate page table to map GPA -> RPA */
> kvm->arch.gpa_mm.pgd = kvm_pgd_alloc();
> --
> 1.8.3.1
>

2021-02-03 10:42:31

by Thomas Bogendoerfer

[permalink] [raw]
Subject: Re: [PATCH] KVM: MIPS: remove unneeded semicolon

On Tue, Feb 02, 2021 at 10:15:35AM +0800, Yang Li wrote:
> Eliminate the following coccicheck warning:
> ./arch/mips/kvm/mips.c:151:2-3: Unneeded semicolon
>
> Reported-by: Abaci Robot <[email protected]>
> Signed-off-by: Yang Li <[email protected]>
> ---
> arch/mips/kvm/mips.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

applied to mips-next.

Thomas.

--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]