diff mbox series

KVM: x86: fix the return type of kvm_age_rmapp

Message ID 20220411081218.2296-1-liubo03@inspur.com (mailing list archive)
State New, archived
Headers show
Series KVM: x86: fix the return type of kvm_age_rmapp | expand

Commit Message

Bo Liu April 11, 2022, 8:12 a.m. UTC
Change the return type of kvm_age_rmapp to "bool"

Signed-off-by: Bo Liu <liubo03@inspur.com>
---
 arch/x86/kvm/mmu/mmu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/arch/x86/kvm/mmu/mmu.c b/arch/x86/kvm/mmu/mmu.c
index c623019929a7..799ab899f552 100644
--- a/arch/x86/kvm/mmu/mmu.c
+++ b/arch/x86/kvm/mmu/mmu.c
@@ -1572,7 +1572,7 @@  static bool kvm_age_rmapp(struct kvm *kvm, struct kvm_rmap_head *rmap_head,
 {
 	u64 *sptep;
 	struct rmap_iterator iter;
-	int young = 0;
+	bool young = false;
 
 	for_each_rmap_spte(rmap_head, &iter, sptep)
 		young |= mmu_spte_age(sptep);