]> xenbits.xensource.com Git - people/liuw/xen.git/commitdiff
x86_64/mm.c: remove code that serves no purpose in setup_m2p_table
authorWei Liu <wei.liu2@citrix.com>
Thu, 31 Jan 2019 18:49:36 +0000 (18:49 +0000)
committerWei Liu <wei.liu2@citrix.com>
Tue, 12 Feb 2019 11:03:20 +0000 (11:03 +0000)
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/x86_64/mm.c

index 094c609c8c90088bcea73a180b7fa26884436ef8..55fa338d717f908da511b622b504b10d59ad1954 100644 (file)
@@ -480,8 +480,6 @@ static int setup_m2p_table(struct mem_hotadd_info *info)
             l2e_write(l2_ro_mpt, l2e_from_mfn(mfn,
                    /*_PAGE_GLOBAL|*/_PAGE_PSE|_PAGE_USER|_PAGE_PRESENT));
         }
-        if ( !((unsigned long)l2_ro_mpt & ~PAGE_MASK) )
-            l2_ro_mpt = NULL;
         i += ( 1UL << (L2_PAGETABLE_SHIFT - 3));
     }
 #undef CNT