diff mbox series

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

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

Commit Message

Julien Grall Feb. 4, 2020, 1:06 p.m. UTC
Signed-off-by: Julien Grall <julien@xen.org>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>

---
    Changes in v2:
        - Add Roger's reviewed-by
---
 xen/arch/x86/mm/hap/hap.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

George Dunlap Feb. 4, 2020, 3:40 p.m. UTC | #1
On 2/4/20 1:06 PM, Julien Grall wrote:
> Signed-off-by: Julien Grall <julien@xen.org>
> Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>

Acked-by: George Dunlap <george.dunlap@citrix.com>
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;