[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220916032656.6264-1-liujing@cmss.chinamobile.com>
Date: Thu, 15 Sep 2022 23:26:56 -0400
From: liujing <liujing@...s.chinamobile.com>
To: seanjc@...gle.com, pbonzini@...hat.com, tglx@...utronix.de
Cc: mingo@...hat.com, bp@...en8.de, dave.hansen@...ux.intel.com,
x86@...nel.org, hpa@...or.com, kvm@...r.kernel.org,
linux-kernel@...r.kernel.org,
liujing <liujing@...s.chinamobile.com>
Subject: [PATCH] KVM: duplicate code
in "static int FNAME(walk_addr_generic)" function,
there is an explanation that uses two to's, which is redundant code
Signed-off-by: liujing <liujing@...s.chinamobile.com>
---
arch/x86/kvm/mmu/paging_tmpl.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kvm/mmu/paging_tmpl.h b/arch/x86/kvm/mmu/paging_tmpl.h
index 39e0205e7300..5ab5f94dcb6f 100644
--- a/arch/x86/kvm/mmu/paging_tmpl.h
+++ b/arch/x86/kvm/mmu/paging_tmpl.h
@@ -472,7 +472,7 @@ static int FNAME(walk_addr_generic)(struct guest_walker *walker,
#if PTTYPE == PTTYPE_EPT
/*
- * Use PFERR_RSVD_MASK in error_code to to tell if EPT
+ * Use PFERR_RSVD_MASK in error_code to tell if EPT
* misconfiguration requires to be injected. The detection is
* done by is_rsvd_bits_set() above.
*
--
2.18.2
Powered by blists - more mailing lists