OSDN Git Service

RISC-V: KVM: fix boolreturn.cocci warnings
authorBixuan Cui <cuibixuan@linux.alibaba.com>
Wed, 27 Oct 2021 07:20:53 +0000 (15:20 +0800)
committerAnup Patel <anup@brainfault.org>
Mon, 1 Nov 2021 12:05:17 +0000 (17:35 +0530)
commitbbd5ba8db7662dbfcc15204eb105cd0c2971a47c
treeffa6c7bbb755e0c2bd9b1075e4798063285f3aaf
parent7b161d9cab5d2c853b8861b2ad21bcd79d669fe3
RISC-V: KVM: fix boolreturn.cocci warnings

Fix boolreturn.cocci warnings:
./arch/riscv/kvm/mmu.c:603:9-10: WARNING: return of 0/1 in function
'kvm_age_gfn' with return type bool
./arch/riscv/kvm/mmu.c:582:9-10: WARNING: return of 0/1 in function
'kvm_set_spte_gfn' with return type bool
./arch/riscv/kvm/mmu.c:621:9-10: WARNING: return of 0/1 in function
'kvm_test_age_gfn' with return type bool
./arch/riscv/kvm/mmu.c:568:9-10: WARNING: return of 0/1 in function
'kvm_unmap_gfn_range' with return type bool

Signed-off-by: Bixuan Cui <cuibixuan@linux.alibaba.com>
Signed-off-by: Anup Patel <anup.patel@wdc.com>
arch/riscv/kvm/mmu.c