diff mbox series

[1/2] xen/x86: hap: Fix coding style in hap_enable()

Message ID 20200204093411.15887-2-julien@xen.org (mailing list archive)
State Superseded
Headers show
Series xen/x86: hap: Small clean-up/hardening in hap_enable() | expand

Commit Message

Julien Grall Feb. 4, 2020, 9:34 a.m. UTC
From: Julien Grall <jgrall@amazon.com>

Signed-off-by: Julien Grall <jgrall@amazon.com>
---
 xen/arch/x86/mm/hap/hap.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Roger Pau Monné Feb. 4, 2020, 10:07 a.m. UTC | #1
On Tue, Feb 04, 2020 at 09:34:10AM +0000, Julien Grall wrote:
> From: Julien Grall <jgrall@amazon.com>
> 
> Signed-off-by: Julien Grall <jgrall@amazon.com>

Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>

Thanks, Roger.
diff mbox series

Patch

diff --git a/xen/arch/x86/mm/hap/hap.c b/xen/arch/x86/mm/hap/hap.c
index 3d93f3451c..31362a31b6 100644
--- a/xen/arch/x86/mm/hap/hap.c
+++ b/xen/arch/x86/mm/hap/hap.c
@@ -473,7 +473,8 @@  int hap_enable(struct domain *d, u32 mode)
             goto out;
     }
 
-    for (i = 0; i < MAX_NESTEDP2M; i++) {
+    for ( i = 0; i < MAX_NESTEDP2M; i++ )
+    {
         rv = p2m_alloc_table(d->arch.nested_p2m[i]);
         if ( rv != 0 )
            goto out;